aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_list.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/output_list.h')
-rw-r--r--src/output_list.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/output_list.h b/src/output_list.h
index 3deb31c00..185ada716 100644
--- a/src/output_list.h
+++ b/src/output_list.h
@@ -20,16 +20,14 @@
#ifndef MPD_OUTPUT_LIST_H
#define MPD_OUTPUT_LIST_H
-#include <stdio.h>
-
-extern const struct audio_output_plugin *audio_output_plugins[];
+extern const struct audio_output_plugin *const 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)
+#define audio_output_plugins_for_each(plugin) \
+ for (const struct audio_output_plugin *plugin, \
+ *const*output_plugin_iterator = &audio_output_plugins[0]; \
+ (plugin = *output_plugin_iterator) != NULL; ++output_plugin_iterator)
#endif