src/server/daemon/event_bsd.h

branch
aio
changeset 170
711d00eeed25
parent 109
8a0a7754f123
equal deleted inserted replaced
165:6942a8c3e737 170:711d00eeed25
37 37
38 #ifdef __cplusplus 38 #ifdef __cplusplus
39 extern "C" { 39 extern "C" {
40 #endif 40 #endif
41 41
42 struct event_handler { 42 struct EventHandler {
43 int *ports; 43 int kqueue;
44 uint32_t nports;
45 uint32_t lp;
46 }; 44 };
47 45
48 typedef struct ev_thr_conf { 46 void ev_handle_events(EventHandler *ev);
49 event_handler_t *handler;
50 int port;
51 } ev_thr_conf_t;
52 47
53 void ev_handle_events(ev_thr_conf_t *conf); 48 int ev_convert2sys_events(int events);
54
55 int ev_get_port(event_handler_t *h);
56 49
57 #ifdef __cplusplus 50 #ifdef __cplusplus
58 } 51 }
59 #endif 52 #endif
60 53

mercurial