# HG changeset patch # User stefano # Date 1264350836 0 # Node ID b862bba5a321ff112c4dee18805471896c0d500f # Parent ef37cc286c01a5db91f3c2ce6bb4c2a75e6c1679 Doxument url_close(). diff -r ef37cc286c01 -r b862bba5a321 avio.h --- a/avio.h Sun Jan 24 13:31:25 2010 +0000 +++ b/avio.h Sun Jan 24 16:33:56 2010 +0000 @@ -103,7 +103,16 @@ int url_read_complete(URLContext *h, unsigned char *buf, int size); int url_write(URLContext *h, unsigned char *buf, int size); int64_t url_seek(URLContext *h, int64_t pos, int whence); + +/** + * Closes the resource accessed by the URLContext h, and frees the + * memory used by it. + * + * @return a negative value if an error condition occurred, 0 + * otherwise + */ int url_close(URLContext *h); + int url_exist(const char *filename); int64_t url_filesize(URLContext *h);