diff options
Diffstat (limited to '')
-rw-r--r-- | src/playlist_list.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/playlist_list.h b/src/playlist_list.h index 3710589a2..08e8cbd76 100644 --- a/src/playlist_list.h +++ b/src/playlist_list.h @@ -25,6 +25,14 @@ struct playlist_provider; struct input_stream; +extern const struct playlist_plugin *const playlist_plugins[]; + +#define playlist_plugins_for_each(plugin) \ + for (const struct playlist_plugin *plugin, \ + *const*playlist_plugin_iterator = &playlist_plugins[0]; \ + (plugin = *playlist_plugin_iterator) != NULL; \ + ++playlist_plugin_iterator) + /** * Initializes all playlist plugins. */ |