aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/SocketMonitor.hxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-11-28 16:37:23 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-11-28 17:06:16 +0600
commitbb288f02848793a85b74262063d1bd9c7bc7dd78 (patch)
tree8075e0299a670f7f6bee9caaef7c74654d5bd240 /src/event/SocketMonitor.hxx
parentf90abe9530ef1075bc9b60e0f08f405d2d86f799 (diff)
downloadmpd-bb288f02848793a85b74262063d1bd9c7bc7dd78.tar.gz
mpd-bb288f02848793a85b74262063d1bd9c7bc7dd78.tar.xz
mpd-bb288f02848793a85b74262063d1bd9c7bc7dd78.zip
event: introduce generic API for internal event loop
Diffstat (limited to '')
-rw-r--r--src/event/SocketMonitor.hxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/event/SocketMonitor.hxx b/src/event/SocketMonitor.hxx
index 4d3e5aea2..f6aac2bd6 100644
--- a/src/event/SocketMonitor.hxx
+++ b/src/event/SocketMonitor.hxx
@@ -23,9 +23,7 @@
#include "check.h"
#ifdef USE_INTERNAL_EVENTLOOP
-#ifdef USE_EPOLL
-#include <sys/epoll.h>
-#endif
+#include "PollGroup.hxx"
#endif
#ifdef USE_GLIB_EVENTLOOP
@@ -79,12 +77,10 @@ class SocketMonitor {
public:
#ifdef USE_INTERNAL_EVENTLOOP
-#ifdef USE_EPOLL
- static constexpr unsigned READ = EPOLLIN;
- static constexpr unsigned WRITE = EPOLLOUT;
- static constexpr unsigned ERROR = EPOLLERR;
- static constexpr unsigned HANGUP = EPOLLHUP;
-#endif
+ static constexpr unsigned READ = PollGroup::READ;
+ static constexpr unsigned WRITE = PollGroup::WRITE;
+ static constexpr unsigned ERROR = PollGroup::ERROR;
+ static constexpr unsigned HANGUP = PollGroup::HANGUP;
#endif
#ifdef USE_GLIB_EVENTLOOP