X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/9c3ea2c67ff2082780a7323fa5df445469faf0b4..aa3db4d9af85499b82ea83235a1400f24a2965c8:/event.h?ds=inline diff --git a/event.h b/event.h index 18aa3a6..3c2f448 100644 --- a/event.h +++ b/event.h @@ -38,11 +38,15 @@ extern "C" { #include "ev.h" struct event - { - struct ev_io io; +{ + /* libev watchers we map onto */ + union { + struct ev_io io; + struct ev_signal sig; + } iosig; struct ev_timer to; - struct ev_signal sig; + /* compatibility slots */ struct event_base *ev_base; void (*ev_callback)(int, short, void *arg); void *ev_arg; @@ -116,3 +120,4 @@ int event_base_once (struct event_base *base, int fd, short events, void (*cb)(i int event_base_priority_init (struct event_base *base, int fd); #endif +