summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2007-11-03 22:10:39 +0000
committerroot <root>2007-11-03 22:10:39 +0000
commit36ed1953891a670e15f5e113491596630f21676c (patch)
tree4d90c5d579adec56ab460557ee52e0505b869d20 /ev.h
parent228b0b302ab0857b23efad5a8b2429de2c0ccc00 (diff)
*** empty log message ***
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/ev.h b/ev.h
index f8112b0..208ee70 100644
--- a/ev.h
+++ b/ev.h
@@ -44,10 +44,20 @@ typedef double ev_tstamp;
# define EV_MAXPRI +2
#endif
-#define EV_P void
-#define EV_P_
-#define EV_A
-#define EV_A_
+/* support multiple event loops? */
+#ifdef EV_MULTIPLICITY
+struct ev_loop;
+# define EV_P struct ev_loop *loop
+# define EV_P_ EV_P,
+# define EV_A loop
+# define EV_A_ EV_A,
+#else
+# define EV_P void
+# define EV_P_
+# define EV_A
+# define EV_A_
+
+#endif
/* eventmask, revents, events... */
#define EV_UNDEF -1 /* guaranteed to be invalid */