summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-04 08:18:54 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-08 17:48:44 +0200
commitf8270bbf8ce891cc614a5562c02ce18a50a89f1d (patch)
treed3e1e18d889e8b7cd931233b535aebd19d782eab /libavformat/avio.h
parentc234d40bd9c98fc8c5540135cd5055c12e603a0f (diff)
avio: add a function for iterating though protocol names.
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index c39d2a0444..9ea138e080 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -600,4 +600,17 @@ int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer);
int udp_get_file_handle(URLContext *h);
#endif
+/**
+ * Iterate through names of available protocols.
+ *
+ * @param opaque A private pointer representing current protocol.
+ * It must be a pointer to NULL on first iteration and will
+ * be updated by successive calls to avio_enum_protocols.
+ * @param output If set to 1, iterate over output protocols,
+ * otherwise over input protocols.
+ *
+ * @return A static string containing the name of current protocol or NULL
+ */
+const char *avio_enum_protocols(void **opaque, int output);
+
#endif /* AVFORMAT_AVIO_H */