36 #include <sys/time.h> |
36 #include <sys/time.h> |
37 |
37 |
38 #ifdef __cplusplus |
38 #ifdef __cplusplus |
39 extern "C" { |
39 extern "C" { |
40 #endif |
40 #endif |
|
41 |
|
42 #define EV_MAX_EVENTS 32 |
41 |
43 |
42 struct EventHandler { |
44 struct EventHandler { |
43 int kqueue; |
45 int kqueue; |
|
46 |
|
47 /* |
|
48 * return call list |
|
49 */ |
|
50 EVReturn fnreturn[EV_MAX_EVENTS]; |
|
51 /* |
|
52 * number of fnreturn entries |
|
53 */ |
|
54 int numret; |
44 }; |
55 }; |
45 |
56 |
46 void ev_handle_events(EventHandler *ev); |
57 void ev_handle_events(EventHandler *ev); |
47 |
58 |
48 int ev_convert2sys_events(int events); |
59 int ev_convert2sys_events(int events); |