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

Comparing libev/ev.h (file contents):
Revision 1.49 by root, Sat Nov 10 21:19:30 2007 UTC vs.
Revision 1.50 by root, Sun Nov 11 01:07:35 2007 UTC

46 46
47#ifndef EV_MULTIPLICITY 47#ifndef EV_MULTIPLICITY
48# define EV_MULTIPLICITY 1 48# define EV_MULTIPLICITY 1
49#endif 49#endif
50 50
51#ifndef EV_PERIODICS
52# define EV_PERIODICS 1
53#endif
54
51/* support multiple event loops? */ 55/* support multiple event loops? */
52#if EV_MULTIPLICITY 56#if EV_MULTIPLICITY
53struct ev_loop; 57struct ev_loop;
54# define EV_P struct ev_loop *loop 58# define EV_P struct ev_loop *loop
55# define EV_P_ EV_P, 59# define EV_P_ EV_P,
368void ev_timer_start (EV_P_ struct ev_timer *w); 372void ev_timer_start (EV_P_ struct ev_timer *w);
369void ev_timer_stop (EV_P_ struct ev_timer *w); 373void ev_timer_stop (EV_P_ struct ev_timer *w);
370/* stops if active and no repeat, restarts if active and repeating, starts if inactive and repeating */ 374/* stops if active and no repeat, restarts if active and repeating, starts if inactive and repeating */
371void ev_timer_again (EV_P_ struct ev_timer *w); 375void ev_timer_again (EV_P_ struct ev_timer *w);
372 376
377#if EV_PERIODICS
373void ev_periodic_start (EV_P_ struct ev_periodic *w); 378void ev_periodic_start (EV_P_ struct ev_periodic *w);
374void ev_periodic_stop (EV_P_ struct ev_periodic *w); 379void ev_periodic_stop (EV_P_ struct ev_periodic *w);
375void ev_periodic_again (EV_P_ struct ev_periodic *w); 380void ev_periodic_again (EV_P_ struct ev_periodic *w);
381#endif
376 382
377void ev_idle_start (EV_P_ struct ev_idle *w); 383void ev_idle_start (EV_P_ struct ev_idle *w);
378void ev_idle_stop (EV_P_ struct ev_idle *w); 384void ev_idle_stop (EV_P_ struct ev_idle *w);
379 385
380void ev_prepare_start (EV_P_ struct ev_prepare *w); 386void ev_prepare_start (EV_P_ struct ev_prepare *w);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines