]> git.llucax.com Git - software/libev.git/blobdiff - ev++.h
Add missing constants to ev namespace.
[software/libev.git] / ev++.h
diff --git a/ev++.h b/ev++.h
index af51609d23e44dbe225c0d2a6a8eb12984c84f8d..fbf2a170a36cb836c680c140b7cb8a152b445bcb 100644 (file)
--- a/ev++.h
+++ b/ev++.h
@@ -68,6 +68,31 @@ namespace ev {
     ERROR    = EV_ERROR,
   };
 
+  enum
+  {
+    AUTO = EVFLAG_AUTO,
+    NOENV = EVFLAG_NOENV,
+    FORKCHECK = EVFLAG_FORKCHECK,
+    SELECT = EVBACKEND_SELECT,
+    POLL = EVBACKEND_POLL,
+    EPOLL = EVBACKEND_EPOLL,
+    KQUEUE = EVBACKEND_KQUEUE,
+    DEVPOLL = EVBACKEND_DEVPOLL,
+    PORT = EVBACKEND_PORT
+  };
+
+  enum
+  {
+    NONBLOCK = EVLOOP_NONBLOCK,
+    ONESHOT = EVLOOP_ONESHOT
+  };
+
+  enum how_t
+  {
+    ONE = EVUNLOOP_ONE,
+    ALL = EVUNLOOP_ALL
+  };
+
   template<class ev_watcher, class watcher>
   struct base : ev_watcher
   {