ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.h
(Generate patch)

Comparing libev/ev.h (file contents):
Revision 1.40 by root, Thu Nov 8 00:44:17 2007 UTC vs.
Revision 1.41 by root, Thu Nov 8 21:08:56 2007 UTC

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 */
200union ev_any_watcher 201union 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 */
333void ev_feed_event (EV_P_ void *w, int revents);
334
329void ev_io_start (EV_P_ struct ev_io *w); 335void ev_io_start (EV_P_ struct ev_io *w);
330void ev_io_stop (EV_P_ struct ev_io *w); 336void ev_io_stop (EV_P_ struct ev_io *w);
331 337
332void ev_timer_start (EV_P_ struct ev_timer *w); 338void ev_timer_start (EV_P_ struct ev_timer *w);
333void ev_timer_stop (EV_P_ struct ev_timer *w); 339void ev_timer_stop (EV_P_ struct ev_timer *w);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines