diff options
author | root <root> | 2007-11-08 21:08:56 +0000 |
---|---|---|
committer | root <root> | 2007-11-08 21:08:56 +0000 |
commit | 48151275f9dd2099bb2e98f47a341678182d9230 (patch) | |
tree | b28beeed4f402e75438fc206fee927f28f0753e2 /ev.h | |
parent | 286fec65d89d8f47f6171ca9978294ce4b4e6ba8 (diff) |
add ev_feed_event
Diffstat (limited to 'ev.h')
-rw-r--r-- | ev.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -197,6 +197,7 @@ struct ev_child int rstatus; /* rw, holds the exit status, use the macros from sys/wait.h */ }; +/* the presence of this union forces similar struct layout */ union ev_any_watcher { struct ev_watcher w; @@ -326,6 +327,11 @@ void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revent /* stopping (enabling, adding) a watcher does nothing if it is already running */ /* stopping (disabling, deleting) a watcher does nothing unless its already running */ #if EV_PROTOTYPES + +/* feeds an event into a watcher as if the event actually occured */ +/* accepts any ev_watcher type */ +void ev_feed_event (EV_P_ void *w, int revents); + void ev_io_start (EV_P_ struct ev_io *w); void ev_io_stop (EV_P_ struct ev_io *w); |