Hi, this set of patches contains my second take on qualification task for "Browsing content on the server" project. Specifically, it adds directory listing api originally written by Lukasz Marek with a couple of fixes responding to the submitted remarks and my implementation of samba protocol. I left out commits with other protocols as they are not part of the qualification task.
Differences from the first iteration: * Changed AVIODirEntry.type's type from "enum AVIODirEntryType" to int. * Changed types of some other fields of AVIODirEntry to int64_t so they can be assigned an unknown value (-1) + added documentation on unknown values. * Added ff_alloc_dir_entry for allocating AVIODirEntry with default (unknown) values. * Documented lifetime of AVIODirEntry. * Added new struct AVIODirContext and changed api so functions take this instead of void as arguments: int avio_open_dir(AVIODirContext **s, const char *url, AVDictionary **options); int avio_read_dir(AVIODirContext *s, AVIODirEntry **next); int avio_close_dir(AVIODirContext **s); * Added missing tests results of av_append_path_component() to tests/ref/fate/avstring. * Clarified documentation in a couple of places. * Introduced several cosmetic changes. Regards, Mariusz Lukasz Marek (3): lavf: add directory listing API doc/examples: add directory listing example lavu/avstring: add av_append_path_component() funcion Mariusz Szczepańczyk (1): lavf/libsmbclient: implement directory listing callbacks .gitignore | 1 + configure | 2 + doc/Makefile | 1 + doc/examples/Makefile | 3 +- doc/examples/avio_list_dir.c | 105 +++++++++++++++++++++++++++++++++++++++++++ libavformat/avio.c | 74 ++++++++++++++++++++++++++++++ libavformat/avio.h | 84 +++++++++++++++++++++++++++++++++- libavformat/libsmbclient.c | 93 ++++++++++++++++++++++++++++++++++++++ libavformat/url.c | 16 +++++++ libavformat/url.h | 10 +++++ libavutil/avstring.c | 43 ++++++++++++++++++ libavutil/avstring.h | 10 +++++ tests/ref/fate/avstring | 9 ++++ 13 files changed, 449 insertions(+), 2 deletions(-) create mode 100644 doc/examples/avio_list_dir.c -- 2.3.3 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel