aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/url.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-07 21:01:17 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-08 15:59:26 +0200
commit5593f031489f54ad184dd2d2744e31006c8627a5 (patch)
treee96ae18210a8c91895168e4fbd3a1783e98af440 /libavformat/url.h
parentc486dade95ba529151391a7879538c9d4787752b (diff)
downloadffmpeg-5593f031489f54ad184dd2d2744e31006c8627a5.tar.gz
avio: make URLProtocol internal.
Diffstat (limited to 'libavformat/url.h')
-rw-r--r--libavformat/url.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libavformat/url.h b/libavformat/url.h
index b6c110dfe9..bde06d91da 100644
--- a/libavformat/url.h
+++ b/libavformat/url.h
@@ -43,6 +43,23 @@ typedef struct URLContext {
int is_streamed; /**< true if streamed (no seek possible), default = false */
int is_connected;
} URLContext;
+
+typedef struct URLProtocol {
+ const char *name;
+ int (*url_open)( URLContext *h, const char *url, int flags);
+ int (*url_read)( URLContext *h, unsigned char *buf, int size);
+ int (*url_write)(URLContext *h, const unsigned char *buf, int size);
+ int64_t (*url_seek)( URLContext *h, int64_t pos, int whence);
+ int (*url_close)(URLContext *h);
+ struct URLProtocol *next;
+ int (*url_read_pause)(URLContext *h, int pause);
+ int64_t (*url_read_seek)(URLContext *h, int stream_index,
+ int64_t timestamp, int flags);
+ int (*url_get_file_handle)(URLContext *h);
+ int priv_data_size;
+ const AVClass *priv_data_class;
+ int flags;
+} URLProtocol;
#endif
/**