aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-20 13:05:29 +0200
committerMax Kellermann <max@duempel.org>2013-10-20 13:05:50 +0200
commitc1e7be3b8e4ab5fb99587b8e5f262ce41805f892 (patch)
tree415677d105e886569098f8f0a0c9680dde30fb16
parent17ecc56e83cfa2eda27ad664f53f6b9dc37ce8a1 (diff)
downloadmpd-c1e7be3b8e4ab5fb99587b8e5f262ce41805f892.tar.gz
mpd-c1e7be3b8e4ab5fb99587b8e5f262ce41805f892.tar.xz
mpd-c1e7be3b8e4ab5fb99587b8e5f262ce41805f892.zip
decoder/sidplay: add header file
-rw-r--r--Makefile.am3
-rw-r--r--src/DecoderList.cxx3
-rw-r--r--src/decoder/SidplayDecoderPlugin.cxx1
-rw-r--r--src/decoder/SidplayDecoderPlugin.hxx25
4 files changed, 29 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index a4f443f50..519748812 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -618,7 +618,8 @@ endif
if ENABLE_SIDPLAY
libdecoder_plugins_a_SOURCES += \
- src/decoder/SidplayDecoderPlugin.cxx
+ src/decoder/SidplayDecoderPlugin.cxx \
+ src/decoder/SidplayDecoderPlugin.hxx
endif
if ENABLE_FLUIDSYNTH
diff --git a/src/DecoderList.cxx b/src/DecoderList.cxx
index be6749966..67c0e93bf 100644
--- a/src/DecoderList.cxx
+++ b/src/DecoderList.cxx
@@ -42,13 +42,12 @@
#include "decoder/ModplugDecoderPlugin.hxx"
#include "decoder/MpcdecDecoderPlugin.hxx"
#include "decoder/FluidsynthDecoderPlugin.hxx"
+#include "decoder/SidplayDecoderPlugin.hxx"
#include "system/FatalError.hxx"
#include "util/Macros.hxx"
#include <string.h>
-extern const struct decoder_plugin sidplay_decoder_plugin;
-
const struct decoder_plugin *const decoder_plugins[] = {
#ifdef HAVE_MAD
&mad_decoder_plugin,
diff --git a/src/decoder/SidplayDecoderPlugin.cxx b/src/decoder/SidplayDecoderPlugin.cxx
index 3dbede9b5..1ee8dcc42 100644
--- a/src/decoder/SidplayDecoderPlugin.cxx
+++ b/src/decoder/SidplayDecoderPlugin.cxx
@@ -18,6 +18,7 @@
*/
#include "config.h"
+#include "SidplayDecoderPlugin.hxx"
#include "../DecoderAPI.hxx"
#include "tag/TagHandler.hxx"
#include "util/Domain.hxx"
diff --git a/src/decoder/SidplayDecoderPlugin.hxx b/src/decoder/SidplayDecoderPlugin.hxx
new file mode 100644
index 000000000..0b96f8e3a
--- /dev/null
+++ b/src/decoder/SidplayDecoderPlugin.hxx
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * http://www.musicpd.org
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef MPD_DECODER_SIDPLAY_HXX
+#define MPD_DECODER_SIDPLAY_HXX
+
+extern const struct decoder_plugin sidplay_decoder_plugin;
+
+#endif