diff options
author | Mariusz SzczepaĆczyk <mszczepanczyk@gmail.com> | 2015-06-17 20:12:00 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-22 12:46:08 +0200 |
commit | 80e18bb4868a3e95e49b98bcabff25607e1b9679 (patch) | |
tree | 68051af4c9d956b036be7615562b1d4e257da90a /libavformat/avio.h | |
parent | 8fb672b50ae3c5faf75889a2ed8a867af0ddc8a8 (diff) | |
download | android_external_ffmpeg-80e18bb4868a3e95e49b98bcabff25607e1b9679.tar.gz android_external_ffmpeg-80e18bb4868a3e95e49b98bcabff25607e1b9679.tar.bz2 android_external_ffmpeg-80e18bb4868a3e95e49b98bcabff25607e1b9679.zip |
lavf/avio: Extend API with avio_move() and avio_delete()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 9f3a992307..5ac5d38568 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -230,6 +230,25 @@ const char *avio_find_protocol_name(const char *url); int avio_check(const char *url, int flags); /** + * Move or rename a resource. + * + * @note url_src and url_dst should share the same protocol and authority. + * + * @param url_src url to resource to be moved + * @param url_dst new url to resource if the operation succeeded + * @return >=0 on success or negative on error. + */ +int avio_move(const char *url_src, const char *url_dst); + +/** + * Delete a resource. + * + * @param url resource to be deleted. + * @return >=0 on success or negative on error. + */ +int avio_delete(const char *url); + +/** * Open directory for reading. * * @param s directory read context. Pointer to a NULL pointer must be passed. |