summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2010-03-16 20:32:20 +0000
committerroot <root>2010-03-16 20:32:20 +0000
commitcc1c382b0071981b0f3a1cc518dbcab97710b06a (patch)
tree44941537b082df5f8d3e918d80b1c3c5080ab9ad /ev.h
parentc5568c8fe01771bcaa754a9423a78ac21d581293 (diff)
*** empty log message ***
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/ev.h b/ev.h
index 97b7064..16e175b 100644
--- a/ev.h
+++ b/ev.h
@@ -590,9 +590,15 @@ void ev_unref (EV_P);
void ev_once (EV_P_ int fd, int events, ev_tstamp timeout, void (*cb)(int revents, void *arg), void *arg);
# if EV_FEATURE_API
-unsigned int ev_loop_count (EV_P); /* number of loop iterations */
-unsigned int ev_loop_depth (EV_P); /* #ev_loop enters - #ev_loop leaves */
-void ev_loop_verify (EV_P); /* abort if loop data corrupted */
+unsigned int ev_iteration (EV_P); /* number of loop iterations */
+unsigned int ev_depth (EV_P); /* #ev_loop enters - #ev_loop leaves */
+void ev_verify (EV_P); /* abort if loop data corrupted */
+
+/* pre 4.0 API */
+# if EV_MULTIPLICITY
+# define ev_loop_count(l) ev_iteration (l)
+# define ev_loop_depth(l) ev_depth (l)
+# endif
void ev_set_io_collect_interval (EV_P_ ev_tstamp interval); /* sleep at least this time, default 0 */
void ev_set_timeout_collect_interval (EV_P_ ev_tstamp interval); /* sleep at least this time, default 0 */