diff options
Diffstat (limited to 'libavformat/url.h')
-rw-r--r-- | libavformat/url.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h index 40e6c1d17c..a129150d76 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -388,4 +388,23 @@ typedef struct URLComponents { */ int ff_url_decompose(URLComponents *uc, const char *url, const char *end); +/** + * 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 ffurl_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 ffurl_delete(const char *url); + #endif /* AVFORMAT_URL_H */ |