aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorViliam Mateicka <viliam.mateicka@gmail.com>2009-03-18 19:11:48 +0100
committerMax Kellermann <max@duempel.org>2009-03-21 09:45:42 +0100
commit71cd24954a34bc9fb0fdf6505616ba79b8320a5a (patch)
tree9d4797d5a4f2afc93e1a1a7e5560eb7c8efaf36c
parent3d202e4609ab2ed69f8d906d1af0b273fe5025b3 (diff)
downloadmpd-71cd24954a34bc9fb0fdf6505616ba79b8320a5a.tar.gz
mpd-71cd24954a34bc9fb0fdf6505616ba79b8320a5a.tar.xz
mpd-71cd24954a34bc9fb0fdf6505616ba79b8320a5a.zip
move printAllOutputPluginTypes to output_list.c
-rw-r--r--Makefile.am2
-rw-r--r--src/audioOutput.c34
-rw-r--r--src/audioOutput.h27
-rw-r--r--src/cmdline.c4
-rw-r--r--src/output_list.c12
-rw-r--r--src/output_list.h4
6 files changed, 18 insertions, 65 deletions
diff --git a/Makefile.am b/Makefile.am
index 28d128249..dfbaf37c1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,7 +28,6 @@ mpd_headers = \
src/audio.h \
src/audio_format.h \
src/audio_parser.h \
- src/audioOutput.h \
src/output_internal.h \
src/output_api.h \
src/output_plugin.h \
@@ -164,7 +163,6 @@ src_mpd_SOURCES = \
src/notify.c \
src/audio.c \
src/audio_parser.c \
- src/audioOutput.c \
src/buffer2array.c \
src/command.c \
src/idle.c \
diff --git a/src/audioOutput.c b/src/audioOutput.c
deleted file mode 100644
index 20adfe690..000000000
--- a/src/audioOutput.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2003-2009 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.
- */
-
-#include "audioOutput.h"
-#include "output_api.h"
-#include "output_list.h"
-
-void printAllOutputPluginTypes(FILE * fp)
-{
- unsigned i;
- const struct audio_output_plugin *plugin;
-
- audio_output_plugins_for_each(plugin, i)
- fprintf(fp, "%s ", plugin->name);
-
- fprintf(fp, "\n");
- fflush(fp);
-}
diff --git a/src/audioOutput.h b/src/audioOutput.h
deleted file mode 100644
index 40485eacb..000000000
--- a/src/audioOutput.h
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (C) 2003-2009 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_AUDIO_OUTPUT_H
-#define MPD_AUDIO_OUTPUT_H
-
-#include <stdio.h>
-
-void printAllOutputPluginTypes(FILE * fp);
-
-#endif
diff --git a/src/cmdline.c b/src/cmdline.c
index 7f3961480..e0274ef36 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -23,7 +23,7 @@
#include "conf.h"
#include "decoder_list.h"
#include "config.h"
-#include "audioOutput.h"
+#include "output_list.h"
#include "ls.h"
#ifdef ENABLE_ARCHIVE
@@ -56,7 +56,7 @@ static void version(void)
puts("\n"
"Supported outputs:\n");
- printAllOutputPluginTypes(stdout);
+ audio_output_plugin_print_all_types(stdout);
#ifdef ENABLE_ARCHIVE
puts("\n"
diff --git a/src/output_list.c b/src/output_list.c
index f1569abf9..81de16649 100644
--- a/src/output_list.c
+++ b/src/output_list.c
@@ -88,3 +88,15 @@ audio_output_plugin_get(const char *name)
return NULL;
}
+
+void audio_output_plugin_print_all_types(FILE * fp)
+{
+ unsigned i;
+ const struct audio_output_plugin *plugin;
+
+ audio_output_plugins_for_each(plugin, i)
+ fprintf(fp, "%s ", plugin->name);
+
+ fprintf(fp, "\n");
+ fflush(fp);
+}
diff --git a/src/output_list.h b/src/output_list.h
index 706d446d0..b6f82163c 100644
--- a/src/output_list.h
+++ b/src/output_list.h
@@ -20,11 +20,15 @@
#ifndef MPD_OUTPUT_LIST_H
#define MPD_OUTPUT_LIST_H
+#include <stdio.h>
+
extern const struct audio_output_plugin *audio_output_plugins[];
const struct audio_output_plugin *
audio_output_plugin_get(const char *name);
+void audio_output_plugin_print_all_types(FILE * fp);
+
#define audio_output_plugins_for_each(plugin, i) \
for (i = 0; (plugin = audio_output_plugins[i]) != NULL; ++i)