diff options
Diffstat (limited to 'event-internal.h')
-rw-r--r-- | event-internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/event-internal.h b/event-internal.h index 56ef877b..16263a8f 100644 --- a/event-internal.h +++ b/event-internal.h @@ -35,6 +35,18 @@ extern "C" { #include "min_heap.h" #include "evsignal.h" +struct eventop { + const char *name; + void *(*init)(struct event_base *); + int (*add)(void *, struct event *); + int (*del)(void *, struct event *); + int (*recalc)(struct event_base *, void *, int); + int (*dispatch)(struct event_base *, void *, struct timeval *); + void (*dealloc)(struct event_base *, void *); + /* set if we need to reinitialize the event base */ + int need_reinit; +}; + struct event_base { const struct eventop *evsel; void *evbase; |