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

Comparing libev/ev.h (file contents):
Revision 1.104 by root, Thu Jun 19 07:06:35 2008 UTC vs.
Revision 1.107 by root, Wed Nov 5 02:48:45 2008 UTC

335 ev_prepare prepare; /* private */ 335 ev_prepare prepare; /* private */
336 ev_check check; /* unused */ 336 ev_check check; /* unused */
337 ev_timer timer; /* unused */ 337 ev_timer timer; /* unused */
338 ev_periodic periodic; /* unused */ 338 ev_periodic periodic; /* unused */
339 ev_idle idle; /* unused */ 339 ev_idle idle; /* unused */
340 ev_fork fork; /* unused */ 340 ev_fork fork; /* private */
341} ev_embed; 341} ev_embed;
342#endif 342#endif
343 343
344#if EV_ASYNC_ENABLE 344#if EV_ASYNC_ENABLE
345/* invoked when somebody calls ev_async_send on the watcher */ 345/* invoked when somebody calls ev_async_send on the watcher */
454void ev_loop_destroy (EV_P); 454void ev_loop_destroy (EV_P);
455void ev_loop_fork (EV_P); 455void ev_loop_fork (EV_P);
456void ev_loop_verify (EV_P); 456void ev_loop_verify (EV_P);
457 457
458ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */ 458ev_tstamp ev_now (EV_P); /* time w.r.t. timers and the eventloop, updated after each poll */
459void ev_now_update (EV_P);
459 460
460#else 461#else
461 462
462int ev_default_loop (unsigned int flags); /* returns true when successful */ 463int ev_default_loop (unsigned int flags); /* returns true when successful */
463 464
512 * should not keep ev_loop from running, unref() after starting, and ref() before stopping. 513 * should not keep ev_loop from running, unref() after starting, and ref() before stopping.
513 */ 514 */
514void ev_ref (EV_P); 515void ev_ref (EV_P);
515void ev_unref (EV_P); 516void ev_unref (EV_P);
516 517
517/* convinience function, wait for a single event, without registering an event watcher */ 518/* convenience function, wait for a single event, without registering an event watcher */
518/* if timeout is < 0, do wait indefinitely */ 519/* if timeout is < 0, do wait indefinitely */
519void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg); 520void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg);
520#endif 521#endif
521 522
522/* these may evaluate ev multiple times, and the other arguments at most once */ 523/* these may evaluate ev multiple times, and the other arguments at most once */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines