From 175389c85487822f1ee180ee01cc770df896557f Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 8 Apr 2011 18:32:25 +0200 Subject: 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 --- libavformat/url.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/url.h') 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 -- cgit v1.2.3