diff options
author | Viliam Mateicka <viliam.mateicka@gmail.com> | 2009-03-18 19:11:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-21 09:45:42 +0100 |
commit | 71cd24954a34bc9fb0fdf6505616ba79b8320a5a (patch) | |
tree | 9d4797d5a4f2afc93e1a1a7e5560eb7c8efaf36c /src/output | |
parent | 3d202e4609ab2ed69f8d906d1af0b273fe5025b3 (diff) | |
download | mpd-71cd24954a34bc9fb0fdf6505616ba79b8320a5a.tar.gz mpd-71cd24954a34bc9fb0fdf6505616ba79b8320a5a.tar.xz mpd-71cd24954a34bc9fb0fdf6505616ba79b8320a5a.zip |
move printAllOutputPluginTypes to output_list.c
Diffstat (limited to '')
-rw-r--r-- | src/output_list.c | 12 | ||||
-rw-r--r-- | src/output_list.h | 4 |
2 files changed, 16 insertions, 0 deletions
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) |