… | |
… | |
195 | int pid; /* ro */ |
195 | int pid; /* ro */ |
196 | int rpid; /* rw, holds the received pid */ |
196 | int rpid; /* rw, holds the received pid */ |
197 | int rstatus; /* rw, holds the exit status, use the macros from sys/wait.h */ |
197 | int rstatus; /* rw, holds the exit status, use the macros from sys/wait.h */ |
198 | }; |
198 | }; |
199 | |
199 | |
|
|
200 | /* the presence of this union forces similar struct layout */ |
200 | union ev_any_watcher |
201 | union ev_any_watcher |
201 | { |
202 | { |
202 | struct ev_watcher w; |
203 | struct ev_watcher w; |
203 | struct ev_watcher_list wl; |
204 | struct ev_watcher_list wl; |
204 | struct ev_io io; |
205 | struct ev_io io; |
… | |
… | |
324 | #define ev_set_cb(ev,cb_) ev_cb (ev) = (cb_) |
325 | #define ev_set_cb(ev,cb_) ev_cb (ev) = (cb_) |
325 | |
326 | |
326 | /* stopping (enabling, adding) a watcher does nothing if it is already running */ |
327 | /* stopping (enabling, adding) a watcher does nothing if it is already running */ |
327 | /* stopping (disabling, deleting) a watcher does nothing unless its already running */ |
328 | /* stopping (disabling, deleting) a watcher does nothing unless its already running */ |
328 | #if EV_PROTOTYPES |
329 | #if EV_PROTOTYPES |
|
|
330 | |
|
|
331 | /* feeds an event into a watcher as if the event actually occured */ |
|
|
332 | /* accepts any ev_watcher type */ |
|
|
333 | void ev_feed_event (EV_P_ void *w, int revents); |
|
|
334 | |
329 | void ev_io_start (EV_P_ struct ev_io *w); |
335 | void ev_io_start (EV_P_ struct ev_io *w); |
330 | void ev_io_stop (EV_P_ struct ev_io *w); |
336 | void ev_io_stop (EV_P_ struct ev_io *w); |
331 | |
337 | |
332 | void ev_timer_start (EV_P_ struct ev_timer *w); |
338 | void ev_timer_start (EV_P_ struct ev_timer *w); |
333 | void ev_timer_stop (EV_P_ struct ev_timer *w); |
339 | void ev_timer_stop (EV_P_ struct ev_timer *w); |