… | |
… | |
118 | #endif |
118 | #endif |
119 | #ifndef EV_PROTOTYPES |
119 | #ifndef EV_PROTOTYPES |
120 | # define EV_PROTOTYPES 1 |
120 | # define EV_PROTOTYPES 1 |
121 | #endif |
121 | #endif |
122 | |
122 | |
123 | #define EV_VERSION_MAJOR 1 |
123 | #define EV_VERSION_MAJOR 2 |
124 | #define EV_VERSION_MINOR 0 |
124 | #define EV_VERSION_MINOR 0 |
125 | |
125 | |
126 | #ifndef EV_CB_DECLARE |
126 | #ifndef EV_CB_DECLARE |
127 | # define EV_CB_DECLARE(type) void (*cb)(EV_P_ struct type *w, int revents); |
127 | # define EV_CB_DECLARE(type) void (*cb)(EV_P_ struct type *w, int revents); |
128 | #endif |
128 | #endif |
… | |
… | |
283 | /* the callback gets invoked when the event loop has handled events, and can be 0 */ |
283 | /* the callback gets invoked when the event loop has handled events, and can be 0 */ |
284 | typedef struct ev_embed |
284 | typedef struct ev_embed |
285 | { |
285 | { |
286 | EV_WATCHER (ev_embed) |
286 | EV_WATCHER (ev_embed) |
287 | |
287 | |
288 | ev_io io; /* private */ |
|
|
289 | struct ev_loop *other; /* ro */ |
288 | struct ev_loop *other; /* ro */ |
|
|
289 | ev_io io; /* private */ |
|
|
290 | ev_prepare prepare; /* private */ |
|
|
291 | ev_check check; /* unused */ |
|
|
292 | ev_timer timer; /* unused */ |
|
|
293 | ev_periodic periodic; /* unused */ |
|
|
294 | ev_idle idle; /* unused */ |
|
|
295 | ev_fork fork; /* unused */ |
290 | } ev_embed; |
296 | } ev_embed; |
291 | #endif |
297 | #endif |
292 | |
298 | |
293 | /* the presence of this union forces similar struct layout */ |
299 | /* the presence of this union forces similar struct layout */ |
294 | union ev_any_watcher |
300 | union ev_any_watcher |