Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
iowatch.hh
Go to the documentation of this file.
1#ifndef __IO_WATCH_H__
2#define __IO_WATCH_H__
3
4/*
5 * BUG: enum {READ = 1, WRITE = 4, EXCEPT = 8} borrowed from FL/Enumerations.H
6 */
7#define DIO_READ 1
8#define DIO_WRITE 4
9#define DIO_EXCEPT 8
10
11typedef void (*CbFunction_t)(int fd, void *data);
12
13#ifdef __cplusplus
14extern "C" {
15#endif /* __cplusplus */
16
17void a_IOwatch_add_fd(int fd,int when,CbFunction_t Callback,void *usr_data);
18void a_IOwatch_remove_fd(int fd,int when);
19
20#ifdef __cplusplus
21}
22#endif /* __cplusplus */
23
24#endif /* __IO_WATCH_H__ */
25
void a_IOwatch_remove_fd(int fd, int when)
Remove a Callback for a given FD (or just remove some events)
Definition iowatch.cc:32
void(* CbFunction_t)(int fd, void *data)
Definition iowatch.hh:11
void a_IOwatch_add_fd(int fd, int when, CbFunction_t Callback, void *usr_data)