summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorAlexander Strasser <eclipse7@gmx.net>2014-01-05 02:11:18 +0100
committerAlexander Strasser <eclipse7@gmx.net>2014-02-16 22:34:21 +0100
commitdb3c9701f46d20fd7e94c3222cf4fd4524a16414 (patch)
treebb13ace709cbc881905c0ba211da30c36436ae6e /libavformat/avio.h
parenta392bf657015c9a79a5a13adfbfb15086c1943b9 (diff)
lavf/avio: Introduce avio_find_protocol_name
Make it possible to find out what protocol will be chosen for a given URL. Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 4f4ac3cbaf..bf23171502 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -151,6 +151,15 @@ typedef struct AVIOContext {
/* unbuffered I/O */
/**
+ * Return the name of the protocol that will handle the passed URL.
+ *
+ * NULL is returned if no protocol could be found for the given URL.
+ *
+ * @return Name of the protocol or NULL.
+ */
+const char *avio_find_protocol_name(const char *url);
+
+/**
* Return AVIO_FLAG_* access flags corresponding to the access permissions
* of the resource in url, or a negative value corresponding to an
* AVERROR code in case of failure. The returned access flags are