diff options
author | Jordi Ortiz <nenjordi@gmail.com> | 2012-08-17 18:38:59 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-08-17 22:14:30 +0300 |
commit | d6b9da1178a8e84d1bf999337c058440826d3f54 (patch) | |
tree | 29e00dd205c3c4c2c5670a1e639742ca04706c91 /libavformat/url.h | |
parent | 2e8f3cbcda536970aee03f5543185d7fc01232a1 (diff) | |
download | ffmpeg-d6b9da1178a8e84d1bf999337c058440826d3f54.tar.gz |
avio: add (ff)url_get_multi_file_handle() for getting more than one fd
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/url.h')
-rw-r--r-- | libavformat/url.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h index 0f0de7881c..195a8ff658 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -81,6 +81,8 @@ typedef struct URLProtocol { int64_t (*url_read_seek)(URLContext *h, int stream_index, int64_t timestamp, int flags); int (*url_get_file_handle)(URLContext *h); + int (*url_get_multi_file_handle)(URLContext *h, int **handles, + int *numhandles); int (*url_shutdown)(URLContext *h, int flags); int priv_data_size; const AVClass *priv_data_class; @@ -202,6 +204,13 @@ int64_t ffurl_size(URLContext *h); int ffurl_get_file_handle(URLContext *h); /** + * Return the file descriptors associated with this URL. + * + * @return 0 on success or <0 on error. + */ +int ffurl_get_multi_file_handle(URLContext *h, int **handles, int *numhandles); + +/** * Signal the URLContext that we are done reading or writing the stream. * * @param h pointer to the resource |