event_pipe.h: convert to C++

This commit is contained in:
Max Kellermann 2013-01-09 22:37:47 +01:00
parent 8eacd13ce7
commit 5faf443038
16 changed files with 21 additions and 44 deletions

View File

@ -96,7 +96,6 @@ mpd_headers = \
src/mixer_api.h \
src/mixer_control.h \
src/mixer_list.h \
src/event_pipe.h \
src/mixer_plugin.h \
src/mixer_type.h \
src/mixer/software_mixer_plugin.h \
@ -244,7 +243,7 @@ src_mpd_SOURCES = \
src/io_thread.c src/io_thread.h \
src/Main.cxx src/Main.hxx \
src/Win32Main.cxx \
src/EventPipe.cxx \
src/EventPipe.cxx src/EventPipe.hxx \
src/daemon.c \
src/AudioCompress/compress.c \
src/MusicBuffer.cxx src/MusicBuffer.hxx \

View File

@ -18,7 +18,7 @@
*/
#include "config.h"
#include "event_pipe.h"
#include "EventPipe.hxx"
#include "fd_util.h"
#include "mpd_error.h"

View File

@ -17,8 +17,8 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef EVENT_PIPE_H
#define EVENT_PIPE_H
#ifndef MPD_EVENT_PIPE_HXX
#define MPD_EVENT_PIPE_HXX
enum pipe_event {
/** database update was finished */
@ -50,10 +50,6 @@ enum pipe_event {
typedef void (*event_pipe_callback_t)(void);
#ifdef __cplusplus
extern "C" {
#endif
void event_pipe_init(void);
void event_pipe_deinit(void);
@ -70,8 +66,4 @@ void event_pipe_emit(enum pipe_event event);
*/
void event_pipe_emit_fast(enum pipe_event event);
#ifdef __cplusplus
}
#endif
#endif /* MAIN_NOTIFY_H */

View File

@ -24,10 +24,7 @@
#include "config.h"
#include "Idle.hxx"
extern "C" {
#include "event_pipe.h"
}
#include "EventPipe.hxx"
#include <assert.h>
#include <glib.h>

View File

@ -43,6 +43,7 @@
#include "Idle.hxx"
#include "SignalHandlers.hxx"
#include "Log.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "daemon.h"
@ -55,7 +56,6 @@ extern "C" {
#include "input_init.h"
#include "playlist_list.h"
#include "zeroconf.h"
#include "event_pipe.h"
}
#include "mpd_error.h"

View File

@ -32,10 +32,7 @@
#include "OutputAll.hxx"
#include "tag.h"
#include "Idle.hxx"
extern "C" {
#include "event_pipe.h"
}
#include "EventPipe.hxx"
#include <cmath>

View File

@ -27,10 +27,7 @@
#include "Playlist.hxx"
#include "Main.hxx"
#include "Partition.hxx"
extern "C" {
#include "event_pipe.h"
}
#include "EventPipe.hxx"
static void
playlist_tag_event(void)

View File

@ -24,7 +24,7 @@
#include "Log.hxx"
#include "Main.hxx"
#include "event_pipe.h"
#include "EventPipe.hxx"
#include "mpd_error.h"
#include <glib.h>

View File

@ -25,9 +25,9 @@
#include "Mapper.hxx"
#include "DatabaseSimple.hxx"
#include "Idle.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "event_pipe.h"
#include "stats.h"
}

View File

@ -21,10 +21,7 @@
#include "UpdateRemove.hxx"
#include "Playlist.hxx"
#include "Partition.hxx"
extern "C" {
#include "event_pipe.h"
}
#include "EventPipe.hxx"
#include "song.h"
#include "Main.hxx"

View File

@ -21,10 +21,7 @@
#include "Volume.hxx"
#include "MixerAll.hxx"
#include "Idle.hxx"
extern "C" {
#include "event_pipe.h"
}
#include "EventPipe.hxx"
#include <glib.h>

View File

@ -23,10 +23,7 @@
#ifdef WIN32
#include "mpd_error.h"
extern "C" {
#include "event_pipe.h"
}
#include "EventPipe.hxx"
#include <glib.h>

View File

@ -20,7 +20,7 @@
#include "config.h"
#include "mixer_api.h"
#include "output_api.h"
#include "event_pipe.h"
#include "EventPipe.hxx"
#include <glib.h>
#include <alsa/asoundlib.h>

View File

@ -22,7 +22,7 @@
#include "mixer_api.h"
#include "output/pulse_output_plugin.h"
#include "conf.h"
#include "event_pipe.h"
#include "EventPipe.hxx"
#include <glib.h>

View File

@ -18,11 +18,15 @@
*/
#include "config.h"
extern "C" {
#include "mixer_control.h"
#include "mixer_list.h"
#include "filter_registry.h"
}
#include "pcm_volume.h"
#include "event_pipe.h"
#include "EventPipe.hxx"
#include <glib.h>

View File

@ -21,6 +21,7 @@
#include "OutputControl.hxx"
#include "conf.h"
#include "Idle.hxx"
#include "EventPipe.hxx"
extern "C" {
#include "output_plugin.h"
@ -29,7 +30,6 @@ extern "C" {
#include "audio_parser.h"
#include "filter_registry.h"
#include "pcm_convert.h"
#include "event_pipe.h"
}
#include "PlayerControl.hxx"