summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorllucax <llucax>2008-01-18 18:13:40 +0000
committerllucax <llucax>2008-01-18 18:13:40 +0000
commit941cc2f9a534db5871563a0be8e1dd3635b41962 (patch)
treeb6f575cc08a86c09a0f0aa98dc7abe0d212e064b
parent9e5e5be057ed4c6db83225f0aea72e708de89b68 (diff)
Add missing constants to ev namespace.
-rw-r--r--ev++.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/ev++.h b/ev++.h
index af51609..fbf2a17 100644
--- 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
{