diff options
author | Martin Storsjö <martin@martin.st> | 2011-11-06 22:50:44 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-11-13 13:12:17 +0100 |
commit | 6f1b7b39449c4cd58e37d831d5d97bfd25eb26f0 (patch) | |
tree | b97fb7b744d0d6d1d3611465b055dd10c17d8ebc /libavformat/url.h | |
parent | 9957cdbfd5ced5baae6ec97b97b08f1ad42aa4e4 (diff) | |
download | ffmpeg-6f1b7b39449c4cd58e37d831d5d97bfd25eb26f0.tar.gz |
avio: Add an AVIOInterruptCB parameter to ffurl_open/ffurl_alloc
Change all uses of these function to pass the relevant
callback on.
Diffstat (limited to 'libavformat/url.h')
-rw-r--r-- | libavformat/url.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libavformat/url.h b/libavformat/url.h index de10033710..03ba15fdda 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -72,10 +72,13 @@ typedef struct URLProtocol { * function puts the pointer to the created URLContext * @param flags flags which control how the resource indicated by url * is to be opened + * @param int_cb interrupt callback to use for the URLContext, may be + * NULL * @return 0 in case of success, a negative value corresponding to an * AVERROR code in case of failure */ -int ffurl_alloc(URLContext **puc, const char *filename, int flags); +int ffurl_alloc(URLContext **puc, const char *filename, int flags, + const AVIOInterruptCB *int_cb); /** * Connect an URLContext that has been allocated by ffurl_alloc @@ -90,10 +93,13 @@ int ffurl_connect(URLContext *uc); * function puts the pointer to the created URLContext * @param flags flags which control how the resource indicated by url * is to be opened + * @param int_cb interrupt callback to use for the URLContext, may be + * NULL * @return 0 in case of success, a negative value corresponding to an * AVERROR code in case of failure */ -int ffurl_open(URLContext **puc, const char *filename, int flags); +int ffurl_open(URLContext **puc, const char *filename, int flags, + const AVIOInterruptCB *int_cb); /** * Read up to size bytes from the resource accessed by h, and store |