33 #include <ucx/string.h> |
33 #include <ucx/string.h> |
34 |
34 |
35 #ifdef __cplusplus |
35 #ifdef __cplusplus |
36 extern "C" { |
36 extern "C" { |
37 #endif |
37 #endif |
|
38 |
|
39 #define EVENT_POLLIN 0x1 |
|
40 #define EVENT_POLLOUT 0x2 |
38 |
41 |
39 typedef struct event_handler event_handler_t; |
42 typedef struct event_handler event_handler_t; |
40 typedef struct event event_t; |
43 typedef struct event event_t; |
41 |
44 |
42 typedef int(*event_func)(event_handler_t*, event_t*); |
45 typedef int(*event_func)(event_handler_t*, event_t*); |