From 272ee5f7d2be764d5edef2db763f50438689b48c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 2 Jan 2009 11:20:41 +0100 Subject: 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. --- src/main.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.c') 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); -- cgit v1.2.3