aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-09 22:37:47 +0100
committerMax Kellermann <max@duempel.org>2013-01-09 22:37:47 +0100
commit5faf443038edfb7e79ae423a3499faa3af05d64b (patch)
treed1c821578e67a400161cd646d07dc887ee98c57f /src
parent8eacd13ce7f528adc52614ce3cc5faf963b3fc5a (diff)
event_pipe.h: convert to C++
Diffstat (limited to 'src')
-rw-r--r--src/EventPipe.cxx2
-rw-r--r--src/EventPipe.hxx (renamed from src/event_pipe.h)12
-rw-r--r--src/Idle.cxx5
-rw-r--r--src/Main.cxx2
-rw-r--r--src/PlayerThread.cxx5
-rw-r--r--src/PlaylistGlobal.cxx5
-rw-r--r--src/SignalHandlers.cxx2
-rw-r--r--src/UpdateGlue.cxx2
-rw-r--r--src/UpdateRemove.cxx5
-rw-r--r--src/Volume.cxx5
-rw-r--r--src/Win32Main.cxx5
-rw-r--r--src/mixer/AlsaMixerPlugin.cxx2
-rw-r--r--src/mixer/PulseMixerPlugin.cxx2
13 files changed, 14 insertions, 40 deletions
diff --git a/src/EventPipe.cxx b/src/EventPipe.cxx
index b2c80a3c..6c885c01 100644
--- a/src/EventPipe.cxx
+++ b/src/EventPipe.cxx
@@ -18,7 +18,7 @@
*/
#include "config.h"
-#include "event_pipe.h"
+#include "EventPipe.hxx"
#include "fd_util.h"
#include "mpd_error.h"
diff --git a/src/event_pipe.h b/src/EventPipe.hxx
index 7c136304..f7a0c30f 100644
--- a/src/event_pipe.h
+++ b/src/EventPipe.hxx
@@ -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 */
diff --git a/src/Idle.cxx b/src/Idle.cxx
index 4027461c..0d42f7dd 100644
--- a/src/Idle.cxx
+++ b/src/Idle.cxx
@@ -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>
diff --git a/src/Main.cxx b/src/Main.cxx
index c6694307..a158b5e2 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -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"
diff --git a/src/PlayerThread.cxx b/src/PlayerThread.cxx
index bb6f52e0..14c8a03f 100644
--- a/src/PlayerThread.cxx
+++ b/src/PlayerThread.cxx
@@ -32,10 +32,7 @@
#include "OutputAll.hxx"
#include "tag.h"
#include "Idle.hxx"
-
-extern "C" {
-#include "event_pipe.h"
-}
+#include "EventPipe.hxx"
#include <cmath>
diff --git a/src/PlaylistGlobal.cxx b/src/PlaylistGlobal.cxx
index 1a5f1141..87f362a2 100644
--- a/src/PlaylistGlobal.cxx
+++ b/src/PlaylistGlobal.cxx
@@ -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)
diff --git a/src/SignalHandlers.cxx b/src/SignalHandlers.cxx
index dfef9bf8..14da08c7 100644
--- a/src/SignalHandlers.cxx
+++ b/src/SignalHandlers.cxx
@@ -24,7 +24,7 @@
#include "Log.hxx"
#include "Main.hxx"
-#include "event_pipe.h"
+#include "EventPipe.hxx"
#include "mpd_error.h"
#include <glib.h>
diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx
index 984535be..fba4c186 100644
--- a/src/UpdateGlue.cxx
+++ b/src/UpdateGlue.cxx
@@ -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"
}
diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx
index 41aa5177..afa7c293 100644
--- a/src/UpdateRemove.cxx
+++ b/src/UpdateRemove.cxx
@@ -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"
diff --git a/src/Volume.cxx b/src/Volume.cxx
index a046aa94..6a71a696 100644
--- a/src/Volume.cxx
+++ b/src/Volume.cxx
@@ -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>
diff --git a/src/Win32Main.cxx b/src/Win32Main.cxx
index 8543ea10..710811f4 100644
--- a/src/Win32Main.cxx
+++ b/src/Win32Main.cxx
@@ -23,10 +23,7 @@
#ifdef WIN32
#include "mpd_error.h"
-
-extern "C" {
-#include "event_pipe.h"
-}
+#include "EventPipe.hxx"
#include <glib.h>
diff --git a/src/mixer/AlsaMixerPlugin.cxx b/src/mixer/AlsaMixerPlugin.cxx
index 6623d12e..f00bfcb9 100644
--- a/src/mixer/AlsaMixerPlugin.cxx
+++ b/src/mixer/AlsaMixerPlugin.cxx
@@ -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>
diff --git a/src/mixer/PulseMixerPlugin.cxx b/src/mixer/PulseMixerPlugin.cxx
index 509b91bc..3b793756 100644
--- a/src/mixer/PulseMixerPlugin.cxx
+++ b/src/mixer/PulseMixerPlugin.cxx
@@ -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>