The friendly Operating System for the Internet of Things
async_read.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Takuo Yonezawa <Yonezawa-T2@mail.dnp.co.jp>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for
6  * more details.
7  */
8 
18 #ifndef ASYNC_READ_H
19 #define ASYNC_READ_H
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
28 #ifndef ASYNC_READ_NUMOF
29 #define ASYNC_READ_NUMOF 2
30 #endif
31 
35 typedef void (*native_async_read_callback_t)(int fd, void *arg);
36 
42 void native_async_read_setup(void);
43 
49 void native_async_read_cleanup(void);
50 
58 void native_async_read_continue(int fd);
59 
68 void native_async_read_add_handler(int fd, void *arg, native_async_read_callback_t handler);
69 
70 #ifdef __cplusplus
71 }
72 #endif
73 
74 #endif
75 
void native_async_read_add_handler(int fd, void *arg, native_async_read_callback_t handler)
start monitoring of file descriptor
void native_async_read_setup(void)
initialize asynchronus read system
void native_async_read_cleanup(void)
shutdown asynchronus read system
void(* native_async_read_callback_t)(int fd, void *arg)
asynchronus read callback type
Definition: async_read.h:35
void native_async_read_continue(int fd)
resume monitoring of file descriptors