On 20.03.2015 14:55, Michael Niedermayer wrote:
On Fri, Mar 20, 2015 at 03:01:56AM +0100, Mariusz Szczepańczyk wrote:
From: Lukasz Marek <lukasz.m.lu...@gmail.com>
  /**
+ * Open directory for reading.
+ *
+ * @param s       directory read context. Pointer to a NULL pointer must be 
passed.
+ * @param url     directory to be listed.
+ * @param options protocol options.
+ * @return >=0 on success or negative on error.
+ */
+int avio_open_dir(void **s, const char *url, AVDictionary **options);

why void ** ? and not a more specific type ?
a more specific type would allow the compiler to check types

I can't remember exactly why, but as far as I remember
it could be URLContext, but it is not a public struct.
Also, creating dummy struct, to have it stored as void * inside is not much better, but maybe it is. (the same as AVIOContext stores it in void *opaque)

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to