From c1e7be3b8e4ab5fb99587b8e5f262ce41805f892 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 20 Oct 2013 13:05:29 +0200 Subject: decoder/sidplay: add header file --- Makefile.am | 3 ++- src/DecoderList.cxx | 3 +-- src/decoder/SidplayDecoderPlugin.cxx | 1 + src/decoder/SidplayDecoderPlugin.hxx | 25 +++++++++++++++++++++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/decoder/SidplayDecoderPlugin.hxx 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 -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 -- cgit v1.2.3