Dillo
v3.1.1-91-g6d5b3ee3
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
11
typedef
void (*
CbFunction_t
)(
int
fd,
void
*data);
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
/* __cplusplus */
16
17
void
a_IOwatch_add_fd
(
int
fd,
int
when,
CbFunction_t
Callback,
void
*usr_data);
18
void
a_IOwatch_remove_fd
(
int
fd,
int
when);
19
20
#ifdef __cplusplus
21
}
22
#endif
/* __cplusplus */
23
24
#endif
/* __IO_WATCH_H__ */
25
a_IOwatch_remove_fd
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
CbFunction_t
void(* CbFunction_t)(int fd, void *data)
Definition
iowatch.hh:11
a_IOwatch_add_fd
void a_IOwatch_add_fd(int fd, int when, CbFunction_t Callback, void *usr_data)
src
IO
iowatch.hh
Generated on Sun Oct 27 2024 01:29:15 for Dillo by
1.9.8