aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/url.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-11-06 23:03:45 +0200
committerAnton Khirnov <anton@khirnov.net>2011-11-13 13:17:04 +0100
commit1dee0aca7401fc6c01f23ceedaff6533efb0fb28 (patch)
treedbd6104edaaf97d9b48d84cc9ee75ca1747d48e3 /libavformat/url.h
parentddffc2fdc351d60ca190b016cccff4acff27823f (diff)
downloadffmpeg-1dee0aca7401fc6c01f23ceedaff6533efb0fb28.tar.gz
avio: add avio_open2, taking an interrupt callback and options
The interrupt callback has to be passed in during opening (setting it after opening isn't enough), since a blocking open couldn't be interrupted otherwise. Options are passed down to procotols and also need to be available during open() in most cases. Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavformat/url.h')
-rw-r--r--libavformat/url.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h
index 1f04c8d530..ea8c7abb8f 100644
--- a/libavformat/url.h
+++ b/libavformat/url.h
@@ -29,12 +29,15 @@
#include "libavformat/version.h"
#include "libavutil/dict.h"
+#include "libavutil/log.h"
#if !FF_API_OLD_AVIO
#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the first part of a nested protocol scheme */
extern int (*url_interrupt_cb)(void);
+extern const AVClass ffurl_context_class;
+
typedef struct URLContext {
const AVClass *av_class; /**< information for av_log(). Set by url_open(). */
struct URLProtocol *prot;