src/server/daemon/event.h

changeset 542
1327febf99c4
parent 541
1e1fca11aaff
child 543
3335f431a91b
equal deleted inserted replaced
541:1e1fca11aaff 542:1327febf99c4
55 Request *rq; 55 Request *rq;
56 int ret; 56 int ret;
57 } EVReturn; 57 } EVReturn;
58 58
59 typedef struct EVWatchList EVWatchList; 59 typedef struct EVWatchList EVWatchList;
60 typedef void(*evwatchlist_destroyfunc)(EventHandler *h, EVWatchList *item, void *data); 60 typedef void(*evwatchlist_destroyfunc)(EventHandler *h, EVWatchList *item);
61 61
62 struct EVWatchList { 62 struct EVWatchList {
63 time_t created; 63 time_t created;
64 time_t expire; 64 time_t expire;
65 evwatchlist_destroyfunc destroy; 65 evwatchlist_destroyfunc destroy;
66 void *destroydata; 66 void *data;
67 int intdata;
67 EVWatchList *prev; 68 EVWatchList *prev;
68 EVWatchList *next; 69 EVWatchList *next;
69 }; 70 };
70 71
71 72
109 int ev_send(EventHandler *h, Event *event); 110 int ev_send(EventHandler *h, Event *event);
110 111
111 int ev_aioread(int fd, aiocb_s *cb); 112 int ev_aioread(int fd, aiocb_s *cb);
112 int ev_aiowrite(int fd, aiocb_s *cb); 113 int ev_aiowrite(int fd, aiocb_s *cb);
113 114
115 int ev_free_event(EventHandler *h, Event *event);
116
114 void ev_saf_return(EventHandler *h, Session *sn, Request *rq, int ret); 117 void ev_saf_return(EventHandler *h, Session *sn, Request *rq, int ret);
115 118
116 void ev_watchlist_add(EventHandler *h, EVWatchList *elm); 119 void ev_watchlist_add(EventHandler *h, EVWatchList *elm);
117 void ev_watchlist_remove(EventHandler *h, EVWatchList *elm); 120 void ev_watchlist_remove(EventHandler *h, EVWatchList *elm);
118 121

mercurial