diff -r d9c3c23c635b -r 1e1fca11aaff src/server/daemon/event_linux.h --- a/src/server/daemon/event_linux.h Sun Aug 11 10:09:20 2024 +0200 +++ b/src/server/daemon/event_linux.h Sun Aug 11 13:26:17 2024 +0200 @@ -35,10 +35,13 @@ #ifdef __cplusplus extern "C" { #endif - -#define EV_MAX_EVENTS 32 -struct EventHandler { +typedef struct EventHandlerLinux { + /* + * base eventhandler elements (fnreturn, watchlist) + */ + EventHandler base; + /* * epoll fd */ @@ -51,17 +54,9 @@ * pipe write fd */ int eventout; - /* - * return call list - */ - EVReturn fnreturn[EV_MAX_EVENTS]; - /* - * number of fnreturn entries - */ - int numret; -}; +} EventHandlerLinux; -void ev_handle_events(EventHandler *ev); +void ev_handle_events(EventHandlerLinux *ev); int ev_convert2sys_events(int events);