]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/url.h
Merge commit '31048d48b0410b9cfb6023054d81e627d01be342'
[ffmpeg] / libavformat / url.h
index d0035f3617e6e314d334e07e70a258667fa11ab8..1a845b77e7c5f377dbf1716f56794ae14f474175 100644 (file)
@@ -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 */