summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2007-11-02 20:59:14 +0000
committerroot <root>2007-11-02 20:59:14 +0000
commit8ee8df9cf84f6ae595eb82ebe7e5eb119112087e (patch)
tree431a38686ef5cc5b72001302d1aba13aadc1b268 /ev.h
parent338036c31a5f2290ed99ef7e27f1bc450f8487bd (diff)
added kqeueue backend, completely untested
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/ev.h b/ev.h
index c3692dd..a494fd7 100644
--- a/ev.h
+++ b/ev.h
@@ -176,11 +176,13 @@ struct ev_child
int status; /* rw, holds the exit status, use the macros from sys/wait.h */
};
-#define EVMETHOD_AUTO 0 /* consults environment */
-#define EVMETHOD_SELECT 1
-#define EVMETHOD_POLL 2
-#define EVMETHOD_EPOLL 4
-#define EVMETHOD_ANY ~0 /* any method, do not consult env */
+#define EVMETHOD_AUTO 0 /* consults environment */
+#define EVMETHOD_SELECT 1
+#define EVMETHOD_POLL 2
+#define EVMETHOD_EPOLL 4
+#define EVMETHOD_KQUEUE 8
+#define EVMETHOD_DEVPOLL 16
+#define EVMETHOD_ANY ~0 /* any method, do not consult env */
#if EV_PROTOTYPES
extern int ev_method;
int ev_init (int methods); /* returns ev_method */