Commit 5faf4430 authored by Max Kellermann's avatar Max Kellermann

event_pipe.h: convert to C++

parent 8eacd13c
...@@ -96,7 +96,6 @@ mpd_headers = \ ...@@ -96,7 +96,6 @@ mpd_headers = \
src/mixer_api.h \ src/mixer_api.h \
src/mixer_control.h \ src/mixer_control.h \
src/mixer_list.h \ src/mixer_list.h \
src/event_pipe.h \
src/mixer_plugin.h \ src/mixer_plugin.h \
src/mixer_type.h \ src/mixer_type.h \
src/mixer/software_mixer_plugin.h \ src/mixer/software_mixer_plugin.h \
...@@ -244,7 +243,7 @@ src_mpd_SOURCES = \ ...@@ -244,7 +243,7 @@ src_mpd_SOURCES = \
src/io_thread.c src/io_thread.h \ src/io_thread.c src/io_thread.h \
src/Main.cxx src/Main.hxx \ src/Main.cxx src/Main.hxx \
src/Win32Main.cxx \ src/Win32Main.cxx \
src/EventPipe.cxx \ src/EventPipe.cxx src/EventPipe.hxx \
src/daemon.c \ src/daemon.c \
src/AudioCompress/compress.c \ src/AudioCompress/compress.c \
src/MusicBuffer.cxx src/MusicBuffer.hxx \ src/MusicBuffer.cxx src/MusicBuffer.hxx \
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#include "config.h" #include "config.h"
#include "event_pipe.h" #include "EventPipe.hxx"
#include "fd_util.h" #include "fd_util.h"
#include "mpd_error.h" #include "mpd_error.h"
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef EVENT_PIPE_H #ifndef MPD_EVENT_PIPE_HXX
#define EVENT_PIPE_H #define MPD_EVENT_PIPE_HXX
enum pipe_event { enum pipe_event {
/** database update was finished */ /** database update was finished */
...@@ -50,10 +50,6 @@ enum pipe_event { ...@@ -50,10 +50,6 @@ enum pipe_event {
typedef void (*event_pipe_callback_t)(void); typedef void (*event_pipe_callback_t)(void);
#ifdef __cplusplus
extern "C" {
#endif
void event_pipe_init(void); void event_pipe_init(void);
void event_pipe_deinit(void); void event_pipe_deinit(void);
...@@ -70,8 +66,4 @@ void event_pipe_emit(enum pipe_event event); ...@@ -70,8 +66,4 @@ void event_pipe_emit(enum pipe_event event);
*/ */
void event_pipe_emit_fast(enum pipe_event event); void event_pipe_emit_fast(enum pipe_event event);
#ifdef __cplusplus
}
#endif
#endif /* MAIN_NOTIFY_H */ #endif /* MAIN_NOTIFY_H */
...@@ -24,10 +24,7 @@ ...@@ -24,10 +24,7 @@
#include "config.h" #include "config.h"
#include "Idle.hxx" #include "Idle.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "event_pipe.h"
}
#include <assert.h> #include <assert.h>
#include <glib.h> #include <glib.h>
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include "Idle.hxx" #include "Idle.hxx"
#include "SignalHandlers.hxx" #include "SignalHandlers.hxx"
#include "Log.hxx" #include "Log.hxx"
#include "EventPipe.hxx"
extern "C" { extern "C" {
#include "daemon.h" #include "daemon.h"
...@@ -55,7 +56,6 @@ extern "C" { ...@@ -55,7 +56,6 @@ extern "C" {
#include "input_init.h" #include "input_init.h"
#include "playlist_list.h" #include "playlist_list.h"
#include "zeroconf.h" #include "zeroconf.h"
#include "event_pipe.h"
} }
#include "mpd_error.h" #include "mpd_error.h"
......
...@@ -32,10 +32,7 @@ ...@@ -32,10 +32,7 @@
#include "OutputAll.hxx" #include "OutputAll.hxx"
#include "tag.h" #include "tag.h"
#include "Idle.hxx" #include "Idle.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "event_pipe.h"
}
#include <cmath> #include <cmath>
......
...@@ -27,10 +27,7 @@ ...@@ -27,10 +27,7 @@
#include "Playlist.hxx" #include "Playlist.hxx"
#include "Main.hxx" #include "Main.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "event_pipe.h"
}
static void static void
playlist_tag_event(void) playlist_tag_event(void)
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "Log.hxx" #include "Log.hxx"
#include "Main.hxx" #include "Main.hxx"
#include "event_pipe.h" #include "EventPipe.hxx"
#include "mpd_error.h" #include "mpd_error.h"
#include <glib.h> #include <glib.h>
......
...@@ -25,9 +25,9 @@ ...@@ -25,9 +25,9 @@
#include "Mapper.hxx" #include "Mapper.hxx"
#include "DatabaseSimple.hxx" #include "DatabaseSimple.hxx"
#include "Idle.hxx" #include "Idle.hxx"
#include "EventPipe.hxx"
extern "C" { extern "C" {
#include "event_pipe.h"
#include "stats.h" #include "stats.h"
} }
......
...@@ -21,10 +21,7 @@ ...@@ -21,10 +21,7 @@
#include "UpdateRemove.hxx" #include "UpdateRemove.hxx"
#include "Playlist.hxx" #include "Playlist.hxx"
#include "Partition.hxx" #include "Partition.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "event_pipe.h"
}
#include "song.h" #include "song.h"
#include "Main.hxx" #include "Main.hxx"
......
...@@ -21,10 +21,7 @@ ...@@ -21,10 +21,7 @@
#include "Volume.hxx" #include "Volume.hxx"
#include "MixerAll.hxx" #include "MixerAll.hxx"
#include "Idle.hxx" #include "Idle.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "event_pipe.h"
}
#include <glib.h> #include <glib.h>
......
...@@ -23,10 +23,7 @@ ...@@ -23,10 +23,7 @@
#ifdef WIN32 #ifdef WIN32
#include "mpd_error.h" #include "mpd_error.h"
#include "EventPipe.hxx"
extern "C" {
#include "event_pipe.h"
}
#include <glib.h> #include <glib.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include "config.h" #include "config.h"
#include "mixer_api.h" #include "mixer_api.h"
#include "output_api.h" #include "output_api.h"
#include "event_pipe.h" #include "EventPipe.hxx"
#include <glib.h> #include <glib.h>
#include <alsa/asoundlib.h> #include <alsa/asoundlib.h>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "mixer_api.h" #include "mixer_api.h"
#include "output/pulse_output_plugin.h" #include "output/pulse_output_plugin.h"
#include "conf.h" #include "conf.h"
#include "event_pipe.h" #include "EventPipe.hxx"
#include <glib.h> #include <glib.h>
......
...@@ -18,11 +18,15 @@ ...@@ -18,11 +18,15 @@
*/ */
#include "config.h" #include "config.h"
extern "C" {
#include "mixer_control.h" #include "mixer_control.h"
#include "mixer_list.h" #include "mixer_list.h"
#include "filter_registry.h" #include "filter_registry.h"
}
#include "pcm_volume.h" #include "pcm_volume.h"
#include "event_pipe.h" #include "EventPipe.hxx"
#include <glib.h> #include <glib.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "OutputControl.hxx" #include "OutputControl.hxx"
#include "conf.h" #include "conf.h"
#include "Idle.hxx" #include "Idle.hxx"
#include "EventPipe.hxx"
extern "C" { extern "C" {
#include "output_plugin.h" #include "output_plugin.h"
...@@ -29,7 +30,6 @@ extern "C" { ...@@ -29,7 +30,6 @@ extern "C" {
#include "audio_parser.h" #include "audio_parser.h"
#include "filter_registry.h" #include "filter_registry.h"
#include "pcm_convert.h" #include "pcm_convert.h"
#include "event_pipe.h"
} }
#include "PlayerControl.hxx" #include "PlayerControl.hxx"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment