… | |
… | |
36 | #endif |
36 | #endif |
37 | |
37 | |
38 | #include "ev.h" |
38 | #include "ev.h" |
39 | |
39 | |
40 | struct event |
40 | struct event |
41 | { |
41 | { |
|
|
42 | /* lib watchers we map to */ |
|
|
43 | union { |
42 | struct ev_io io; |
44 | struct ev_io io; |
|
|
45 | struct ev_signal sig; |
|
|
46 | } iosig; |
43 | struct ev_timer to; |
47 | struct ev_timer to; |
44 | struct ev_signal sig; |
|
|
45 | |
48 | |
|
|
49 | /* compatibility slots */ |
46 | struct event_base *ev_base; |
50 | struct event_base *ev_base; |
47 | void (*ev_callback)(int, short, void *arg); |
51 | void (*ev_callback)(int, short, void *arg); |
48 | void *ev_arg; |
52 | void *ev_arg; |
49 | int ev_fd; |
53 | int ev_fd; |
50 | int ev_pri; |
54 | int ev_pri; |