summaryrefslogtreecommitdiffstats
path: root/src/evpoll.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/evpoll.h')
-rw-r--r--src/evpoll.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/evpoll.h b/src/evpoll.h
new file mode 100644
index 0000000..dad54b5
--- /dev/null
+++ b/src/evpoll.h
@@ -0,0 +1,8 @@
+#pragma once
+
+#include <poll.h>
+
+/*
+ * integrate with external event loop, e.g. glib
+ */
+int evpoll(struct pollfd *fds, nfds_t nfds, int timeout);