aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-02 11:20:41 +0100
committerMax Kellermann <max@duempel.org>2009-01-02 11:20:41 +0100
commit272ee5f7d2be764d5edef2db763f50438689b48c (patch)
tree871f80692a7f9f1d2f02173fc49d1183819eae55 /src/main.c
parentdaf7c3db5aac09a8376f1c8ed499eb17202f77a9 (diff)
downloadmpd-272ee5f7d2be764d5edef2db763f50438689b48c.tar.gz
mpd-272ee5f7d2be764d5edef2db763f50438689b48c.tar.xz
mpd-272ee5f7d2be764d5edef2db763f50438689b48c.zip
event_pipe: replaced PIPE_EVENT_SIGNAL with main_notify
There is only one location using PIPE_EVENT_SIGNAL: to synchronize player_command() with player_command_finished(). Use the "notify" library instead of the event_pipe here.
Diffstat (limited to '')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index aec3e92e9..c6e81f461 100644
--- a/src/main.c
+++ b/src/main.c
@@ -77,6 +77,8 @@
GMainLoop *main_loop;
+struct notify main_notify;
+
static void changeToUser(void)
{
#ifndef WIN32
@@ -240,6 +242,7 @@ int main(int argc, char *argv[])
changeToUser();
main_loop = g_main_loop_new(NULL, FALSE);
+ notify_init(&main_notify);
event_pipe_init();
event_pipe_register(PIPE_EVENT_IDLE, idle_event_emitted);