src/server/daemon/event.h

changeset 133
87b405d61f64
parent 92
382bff43c6eb
child 152
8b85c5face66
equal deleted inserted replaced
132:e9afb5387007 133:87b405d61f64
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*);
47 Request *rq; 50 Request *rq;
48 event_func fn; 51 event_func fn;
49 event_func finish; 52 event_func finish;
50 intptr_t object; 53 intptr_t object;
51 int events; 54 int events;
55 int poll;
52 void *cookie; 56 void *cookie;
53 }; 57 };
54 58
55 typedef struct event_handler_conf { 59 typedef struct event_handler_conf {
56 sstr_t name; 60 sstr_t name;

mercurial