aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output_list.c12
-rw-r--r--src/output_list.h4
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)