From 941cc2f9a534db5871563a0be8e1dd3635b41962 Mon Sep 17 00:00:00 2001 From: llucax Date: Fri, 18 Jan 2008 18:13:40 +0000 Subject: Add missing constants to ev namespace. --- ev++.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'ev++.h') 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 struct base : ev_watcher { -- cgit v1.2.3