X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Furl.h;h=1a845b77e7c5f377dbf1716f56794ae14f474175;hb=db4ac46fed9b12e3597903c5e99cce146bb05c7e;hp=d0035f3617e6e314d334e07e70a258667fa11ab8;hpb=bd76a4822f989f30c6dc109a5157d6239a6b1112;p=ffmpeg diff --git a/libavformat/url.h b/libavformat/url.h index d0035f3617e..1a845b77e7c 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -87,6 +87,9 @@ typedef struct URLProtocol { const AVClass *priv_data_class; int flags; int (*url_check)(URLContext *h, int mask); + int (*url_open_dir)(URLContext *h); + int (*url_read_dir)(URLContext *h, AVIODirEntry **next); + int (*url_close_dir)(URLContext *h); } URLProtocol; /** @@ -280,5 +283,12 @@ int ff_url_join(char *str, int size, const char *proto, void ff_make_absolute_url(char *buf, int size, const char *base, const char *rel); +/** + * Allocate directory entry with default values. + * + * @return entry or NULL on error + */ +AVIODirEntry *ff_alloc_dir_entry(void); + #endif /* AVFORMAT_URL_H */