… | |
… | |
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 |
53 | struct ev_loop; |
57 | struct 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, |
… | |
… | |
368 | void ev_timer_start (EV_P_ struct ev_timer *w); |
372 | void ev_timer_start (EV_P_ struct ev_timer *w); |
369 | void ev_timer_stop (EV_P_ struct ev_timer *w); |
373 | void 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 */ |
371 | void ev_timer_again (EV_P_ struct ev_timer *w); |
375 | void ev_timer_again (EV_P_ struct ev_timer *w); |
372 | |
376 | |
|
|
377 | #if EV_PERIODICS |
373 | void ev_periodic_start (EV_P_ struct ev_periodic *w); |
378 | void ev_periodic_start (EV_P_ struct ev_periodic *w); |
374 | void ev_periodic_stop (EV_P_ struct ev_periodic *w); |
379 | void ev_periodic_stop (EV_P_ struct ev_periodic *w); |
375 | void ev_periodic_again (EV_P_ struct ev_periodic *w); |
380 | void ev_periodic_again (EV_P_ struct ev_periodic *w); |
|
|
381 | #endif |
376 | |
382 | |
377 | void ev_idle_start (EV_P_ struct ev_idle *w); |
383 | void ev_idle_start (EV_P_ struct ev_idle *w); |
378 | void ev_idle_stop (EV_P_ struct ev_idle *w); |
384 | void ev_idle_stop (EV_P_ struct ev_idle *w); |
379 | |
385 | |
380 | void ev_prepare_start (EV_P_ struct ev_prepare *w); |
386 | void ev_prepare_start (EV_P_ struct ev_prepare *w); |