aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/SignalMonitor.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-18 08:44:40 +0200
committerMax Kellermann <max@duempel.org>2013-10-18 08:44:40 +0200
commit43863a70c87c80e3a15315f561c3a247b27c81fa (patch)
treef75f3e2590225876cae799fe7b930b4d92a43c02 /src/event/SignalMonitor.hxx
parentbd5a70c71285265e59685b7b55cf31069785a58f (diff)
downloadmpd-43863a70c87c80e3a15315f561c3a247b27c81fa.tar.gz
mpd-43863a70c87c80e3a15315f561c3a247b27c81fa.tar.xz
mpd-43863a70c87c80e3a15315f561c3a247b27c81fa.zip
SignalMonitor: add SignalMonitorGetEventLoop()
Eliminate the global variable "shutdown_loop".
Diffstat (limited to 'src/event/SignalMonitor.hxx')
-rw-r--r--src/event/SignalMonitor.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event/SignalMonitor.hxx b/src/event/SignalMonitor.hxx
index 94ab0aa30..1ecccd40b 100644
--- a/src/event/SignalMonitor.hxx
+++ b/src/event/SignalMonitor.hxx
@@ -41,6 +41,13 @@ void
SignalMonitorFinish();
/**
+ * Obtain a reference to the #EventLoop that was passed to
+ * SignalMonitorInit().
+ */
+EventLoop &
+SignalMonitorGetEventLoop();
+
+/**
* Register a handler for the specified signal. The handler will be
* invoked in a safe context.
*/