From 26ebfc04b0668262976ec4fc38d8780c0937045a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 9 Jan 2013 23:12:53 +0100 Subject: EventPipe: rename to GlobalEvents --- src/Main.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Main.cxx') diff --git a/src/Main.cxx b/src/Main.cxx index a158b5e2..0124cc38 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -43,7 +43,7 @@ #include "Idle.hxx" #include "SignalHandlers.hxx" #include "Log.hxx" -#include "EventPipe.hxx" +#include "GlobalEvents.hxx" extern "C" { #include "daemon.h" @@ -316,7 +316,7 @@ initialize_decoder_and_player(void) } /** - * event_pipe callback function for PIPE_EVENT_IDLE + * Handler for GlobalEvents::IDLE. */ static void idle_event_emitted(void) @@ -329,7 +329,7 @@ idle_event_emitted(void) } /** - * event_pipe callback function for PIPE_EVENT_SHUTDOWN + * Handler for GlobalEvents::SHUTDOWN. */ static void shutdown_event_emitted(void) @@ -406,9 +406,9 @@ int mpd_main(int argc, char *argv[]) main_loop = g_main_loop_new(NULL, FALSE); main_cond = g_cond_new(); - event_pipe_init(); - event_pipe_register(PIPE_EVENT_IDLE, idle_event_emitted); - event_pipe_register(PIPE_EVENT_SHUTDOWN, shutdown_event_emitted); + GlobalEvents::Initialize(); + GlobalEvents::Register(GlobalEvents::IDLE, idle_event_emitted); + GlobalEvents::Register(GlobalEvents::SHUTDOWN, shutdown_event_emitted); path_global_init(); @@ -537,7 +537,7 @@ int mpd_main(int argc, char *argv[]) #endif g_cond_free(main_cond); - event_pipe_deinit(); + GlobalEvents::Deinitialize(); playlist_list_global_finish(); input_stream_global_finish(); -- cgit v1.2.3