diff -r 1e1fca11aaff -r 1327febf99c4 src/server/daemon/event.h --- a/src/server/daemon/event.h Sun Aug 11 13:26:17 2024 +0200 +++ b/src/server/daemon/event.h Sun Aug 11 18:51:39 2024 +0200 @@ -57,13 +57,14 @@ } EVReturn; typedef struct EVWatchList EVWatchList; -typedef void(*evwatchlist_destroyfunc)(EventHandler *h, EVWatchList *item, void *data); +typedef void(*evwatchlist_destroyfunc)(EventHandler *h, EVWatchList *item); struct EVWatchList { time_t created; time_t expire; evwatchlist_destroyfunc destroy; - void *destroydata; + void *data; + int intdata; EVWatchList *prev; EVWatchList *next; }; @@ -111,6 +112,8 @@ int ev_aioread(int fd, aiocb_s *cb); int ev_aiowrite(int fd, aiocb_s *cb); +int ev_free_event(EventHandler *h, Event *event); + void ev_saf_return(EventHandler *h, Session *sn, Request *rq, int ret); void ev_watchlist_add(EventHandler *h, EVWatchList *elm);