aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/MultiSocketMonitor.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-05 01:28:36 +0100
committerMax Kellermann <max@duempel.org>2014-01-05 01:28:36 +0100
commit7b540f022699e6e2b2e115d13526e12060a5fc9f (patch)
tree0fca20b0dc652f8dc5eacb56868c31115d3700ef /src/event/MultiSocketMonitor.hxx
parente29c22e662d31fb55b0aa4cd071281fca42fabb0 (diff)
downloadmpd-7b540f022699e6e2b2e115d13526e12060a5fc9f.tar.gz
mpd-7b540f022699e6e2b2e115d13526e12060a5fc9f.tar.xz
mpd-7b540f022699e6e2b2e115d13526e12060a5fc9f.zip
event/MultiSocketMonitor: add method ReplaceSocketList()
Move code from AlsaMixerPlugin.
Diffstat (limited to '')
-rw-r--r--src/event/MultiSocketMonitor.hxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/event/MultiSocketMonitor.hxx b/src/event/MultiSocketMonitor.hxx
index d1cac880a..6c76d667f 100644
--- a/src/event/MultiSocketMonitor.hxx
+++ b/src/event/MultiSocketMonitor.hxx
@@ -39,6 +39,10 @@
#endif
#endif
+#ifndef WIN32
+struct pollfd;
+#endif
+
class EventLoop;
/**
@@ -135,6 +139,14 @@ public:
}
}
+#ifndef WIN32
+ /**
+ * Replace the socket list with the given file descriptors.
+ * The given pollfd array will be modified by this method.
+ */
+ void ReplaceSocketList(pollfd *pfds, unsigned n);
+#endif
+
protected:
/**
* @return timeout [ms] or -1 for no timeout