From 843eb29c6d0212cd66bb5487816166647c4bcd79 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Mar 2009 22:17:17 +0000 Subject: *** empty log message *** --- ev.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ev.h') diff --git a/ev.h b/ev.h index 4f22703..944a0da 100644 --- a/ev.h +++ b/ev.h @@ -136,6 +136,7 @@ struct ev_loop; #define EV__IOFDSET 0x80 /* internal use only */ #define EV_IO EV_READ /* alias for type-detection */ #define EV_TIMEOUT 0x00000100 /* timer timed out */ +#define EV_TIMER EV_TIMEOUT /* alias for type-detection */ #define EV_PERIODIC 0x00000200 /* periodic timer timed out */ #define EV_SIGNAL 0x00000400 /* signal was received */ #define EV_CHILD 0x00000800 /* child/pid had status change */ @@ -492,6 +493,13 @@ void ev_default_destroy (void); /* destroy the default loop */ /* you can actually call it at any time, anywhere :) */ void ev_default_fork (void); +#if 0 +/* walk (almost) all watchers in the loop of a given type, invoking the */ +/* callback on every such watcher. The callback might stop the watcher, */ +/* but do nothing else with the loop */ +void ev_walk (EV_P_ int types, void (*cb)(EV_P_ int type, void *w)); +#endif + unsigned int ev_backend (EV_P); /* backend in use by loop */ unsigned int ev_loop_count (EV_P); /* number of loop iterations */ #endif /* prototypes */ -- cgit v1.2.3