diff options
author | llucax <llucax> | 2008-01-18 18:13:57 +0000 |
---|---|---|
committer | llucax <llucax> | 2008-01-18 18:13:57 +0000 |
commit | 4f776fde71f96363bbbb7ac6570a0db2f0cfb8ba (patch) | |
tree | b74881fc79b30ba94e2883cfc906975ba1bd651a /ev++.h | |
parent | 941cc2f9a534db5871563a0be8e1dd3635b41962 (diff) |
Add missing free functions to ev namespace.
Diffstat (limited to 'ev++.h')
-rw-r--r-- | ev++.h | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -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) { |