search for: dstate_event_pol

Displaying 1 result from an estimated 1 matches for "dstate_event_pol".

Did you mean: dstate_event_poll
2009 Nov 14
1
drivers- dynamically adding filedescriptors to poll
...ibility) interface we're using right now. It is my intention to add something like the following: typedef struct { struct pollfd *fds; nfds_t nfds; event_handler_t *handler; } event_t; typedef struct { struct pollfd fds; void (*callback)(void *data); void *data; } event_handler_t; int dstate_event_poll(event_t *events, int timeout); int dstate_event_add(event_handler_t *handler); int dstate_event_del(event_handler_t *handler); When there is activity on a file descriptor, the handler for that file descriptor would be called with the data provided when the handler was added. This data could b...