diff options
author | Max Kellermann <max@duempel.org> | 2013-01-09 23:12:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-09 23:31:43 +0100 |
commit | 26ebfc04b0668262976ec4fc38d8780c0937045a (patch) | |
tree | 9bbb7825ea5299c9ebd5ed0343e92da70d0012b6 /src/Main.cxx | |
parent | 8782f6d232e43f1424e64c5c1f44d11679cf9c6e (diff) | |
download | mpd-26ebfc04b0668262976ec4fc38d8780c0937045a.tar.gz mpd-26ebfc04b0668262976ec4fc38d8780c0937045a.tar.xz mpd-26ebfc04b0668262976ec4fc38d8780c0937045a.zip |
EventPipe: rename to GlobalEvents
Diffstat (limited to 'src/Main.cxx')
-rw-r--r-- | src/Main.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index a158b5e2f..0124cc38f 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(); |