src/server/daemon/event.h

changeset 543
3335f431a91b
parent 542
1327febf99c4
child 545
720893ec7d48
equal deleted inserted replaced
542:1327febf99c4 543:3335f431a91b
34 34
35 #ifdef __cplusplus 35 #ifdef __cplusplus
36 extern "C" { 36 extern "C" {
37 #endif 37 #endif
38 38
39 #define EV_MAX_EVENTS 32 39 #define EV_MAX_EVENTS 32
40 40 #define EV_IDLE_TIMEOUT 120
41 #define EV_IDLE_LOOP_CTN 16
42
43
41 typedef struct EVHandler { 44 typedef struct EVHandler {
42 EventHandler **instances; 45 EventHandler **instances;
43 uint32_t numins; 46 uint32_t numins;
44 uint32_t current; 47 uint32_t current;
45 } EVHandler; 48 } EVHandler;
61 64
62 struct EVWatchList { 65 struct EVWatchList {
63 time_t created; 66 time_t created;
64 time_t expire; 67 time_t expire;
65 evwatchlist_destroyfunc destroy; 68 evwatchlist_destroyfunc destroy;
66 void *data; 69 void *data1;
70 void *data2;
67 int intdata; 71 int intdata;
68 EVWatchList *prev; 72 EVWatchList *prev;
69 EVWatchList *next; 73 EVWatchList *next;
70 }; 74 };
71 75

mercurial