aboutsummaryrefslogtreecommitdiffstats
path: root/src/encoder_list.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/encoder_list.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/encoder_list.h b/src/encoder_list.h
index 95f853004..4fe87e16c 100644
--- a/src/encoder_list.h
+++ b/src/encoder_list.h
@@ -24,6 +24,14 @@
struct encoder_plugin;
+extern const struct encoder_plugin *const encoder_plugins[];
+
+#define encoder_plugins_for_each(plugin) \
+ for (const struct encoder_plugin *plugin, \
+ *const*encoder_plugin_iterator = &encoder_plugins[0]; \
+ (plugin = *encoder_plugin_iterator) != NULL; \
+ ++encoder_plugin_iterator)
+
/**
* Looks up an encoder plugin by its name.
*