summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorllucax <llucax>2008-01-18 18:13:57 +0000
committerllucax <llucax>2008-01-18 18:13:57 +0000
commit4f776fde71f96363bbbb7ac6570a0db2f0cfb8ba (patch)
treeb74881fc79b30ba94e2883cfc906975ba1bd651a
parent941cc2f9a534db5871563a0be8e1dd3635b41962 (diff)
Add missing free functions to ev namespace.
-rw-r--r--ev++.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/ev++.h b/ev++.h
index fbf2a17..a823538 100644
--- a/ev++.h
+++ b/ev++.h
@@ -188,6 +188,46 @@ namespace ev {
}
};
+ inline void delay (tstamp interval)
+ {
+ ev_sleep (interval);
+ }
+
+ inline int version_major ()
+ {
+ return ev_version_major ();
+ }
+
+ inline int version_minor ()
+ {
+ return ev_version_minor ();
+ }
+
+ inline unsigned int supported_backends ()
+ {
+ return ev_supported_backends ();
+ }
+
+ inline unsigned int recommended_backends ()
+ {
+ return ev_recommended_backends ();
+ }
+
+ inline unsigned int embeddable_backends ()
+ {
+ return ev_embeddable_backends ();
+ }
+
+ inline void set_allocator (void *(*cb)(void *ptr, long size))
+ {
+ ev_set_allocator (cb);
+ }
+
+ inline void set_syserr_cb (void (*cb)(const char *msg))
+ {
+ ev_set_syserr_cb (cb);
+ }
+
inline ev_tstamp now (EV_P)
{