summaryrefslogtreecommitdiff
path: root/libavformat/url.h
diff options
context:
space:
mode:
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-02-29 18:07:41 +0000
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>2016-02-29 18:08:15 +0000
commitbb8cc89b2986df6f60831b67cd250da312cce1d0 (patch)
tree6678d45fc1451bc18bbc92de58bcf1f5308ac4c7 /libavformat/url.h
parent95cdc0a5c658a3f4301a66bcb1d96d11dc941151 (diff)
parent832a202c47a246ed15e3edc6b05dfcfa7d82c4b2 (diff)
Merge commit '832a202c47a246ed15e3edc6b05dfcfa7d82c4b2'
* commit '832a202c47a246ed15e3edc6b05dfcfa7d82c4b2': protocols: make the list of protocols static Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Diffstat (limited to 'libavformat/url.h')
-rw-r--r--libavformat/url.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/libavformat/url.h b/libavformat/url.h
index 810fd147b1..95acd27b46 100644
--- a/libavformat/url.h
+++ b/libavformat/url.h
@@ -311,6 +311,20 @@ AVIODirEntry *ff_alloc_dir_entry(void);
const AVClass *ff_urlcontext_child_class_next(const AVClass *prev);
-extern const URLProtocol *ff_url_protocols[];
+/**
+ * Construct a list of protocols matching a given whitelist and/or blacklist.
+ *
+ * @param whitelist a comma-separated list of allowed protocol names or NULL. If
+ * this is a non-empty string, only protocols in this list will
+ * be included.
+ * @param blacklist a comma-separated list of forbidden protocol names or NULL.
+ * If this is a non-empty string, all protocols in this list
+ * will be excluded.
+ *
+ * @return a NULL-terminated array of matching protocols. The array must be
+ * freed by the caller.
+ */
+const URLProtocol **ffurl_get_protocols(const char *whitelist,
+ const char *blacklist);
#endif /* AVFORMAT_URL_H */