summaryrefslogtreecommitdiff
path: root/libavformat/url.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-04-08 18:32:25 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-13 07:38:15 +0200
commit175389c85487822f1ee180ee01cc770df896557f (patch)
tree1fa215240c2a7c8b9eb27b2566385c4f2728c52b /libavformat/url.h
parentcbea3ac8203690dec29c473399a50f8f6bb76c47 (diff)
avio: add avio_check()
The new function is more flexible than url_exist(), as it allows to specify which access flags to check, and does not require an explicit open of the checked resource. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/url.h')
-rw-r--r--libavformat/url.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h
index bde06d91da..c5732c64c6 100644
--- a/libavformat/url.h
+++ b/libavformat/url.h
@@ -59,6 +59,7 @@ typedef struct URLProtocol {
int priv_data_size;
const AVClass *priv_data_class;
int flags;
+ int (*url_check)(URLContext *h, int mask);
} URLProtocol;
#endif