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.
This commit is contained in:
Max Kellermann
2009-01-02 11:20:41 +01:00
parent daf7c3db5a
commit 272ee5f7d2
6 changed files with 13 additions and 23 deletions

View File

@@ -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);