diff options
author | Max Kellermann <max@duempel.org> | 2013-10-18 08:30:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-18 08:30:44 +0200 |
commit | bd5a70c71285265e59685b7b55cf31069785a58f (patch) | |
tree | e187784149128b023766e35a2b82ae57daf6a648 /src/input/CurlInputPlugin.cxx | |
parent | 909ff4b8a9a00a1c6a7bada08e35a0e6d2ef1ac6 (diff) | |
download | mpd-bd5a70c71285265e59685b7b55cf31069785a58f.tar.gz mpd-bd5a70c71285265e59685b7b55cf31069785a58f.tar.xz mpd-bd5a70c71285265e59685b7b55cf31069785a58f.zip |
input/curl: use MultiSocketMonitor constants instead of GLib
Diffstat (limited to 'src/input/CurlInputPlugin.cxx')
-rw-r--r-- | src/input/CurlInputPlugin.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index 6f11153ec..8f54898fc 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -257,17 +257,20 @@ input_curl_fd_events(int fd, fd_set *rfds, fd_set *wfds, fd_set *efds) gushort events = 0; if (FD_ISSET(fd, rfds)) { - events |= G_IO_IN | G_IO_HUP | G_IO_ERR; + events |= MultiSocketMonitor::READ | MultiSocketMonitor::HANGUP + | MultiSocketMonitor::ERROR; FD_CLR(fd, rfds); } if (FD_ISSET(fd, wfds)) { - events |= G_IO_OUT | G_IO_ERR; + events |= MultiSocketMonitor::WRITE | + MultiSocketMonitor::ERROR; FD_CLR(fd, wfds); } if (FD_ISSET(fd, efds)) { - events |= G_IO_HUP | G_IO_ERR; + events |= MultiSocketMonitor::HANGUP | + MultiSocketMonitor::ERROR; FD_CLR(fd, efds); } |