diff options
Diffstat (limited to 'libavformat/url.h')
-rw-r--r-- | libavformat/url.h | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/libavformat/url.h b/libavformat/url.h index 5948df684f..085c24c628 100644 --- a/libavformat/url.h +++ b/libavformat/url.h @@ -37,7 +37,7 @@ extern const AVClass ffurl_context_class; typedef struct URLContext { const AVClass *av_class; /**< information for av_log(). Set by url_open(). */ - struct URLProtocol *prot; + const struct URLProtocol *prot; void *priv_data; char *filename; /**< specified URL */ int flags; @@ -77,7 +77,6 @@ typedef struct URLProtocol { 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); @@ -258,23 +257,11 @@ int ffurl_get_multi_file_handle(URLContext *h, int **handles, int *numhandles); int ffurl_shutdown(URLContext *h, int flags); /** - * Register the URLProtocol protocol. - */ -int ffurl_register_protocol(URLProtocol *protocol); - -/** * Check if the user has requested to interrup a blocking function * associated with cb. */ int ff_check_interrupt(AVIOInterruptCB *cb); -/** - * Iterate over all available protocols. - * - * @param prev result of the previous call to this functions or NULL. - */ -URLProtocol *ffurl_protocol_next(const URLProtocol *prev); - /* udp.c */ int ff_udp_set_remote_url(URLContext *h, const char *uri); int ff_udp_get_local_port(URLContext *h); @@ -322,5 +309,6 @@ void ff_make_absolute_url(char *buf, int size, const char *base, */ AVIODirEntry *ff_alloc_dir_entry(void); +extern const URLProtocol *ff_url_protocols[]; #endif /* AVFORMAT_URL_H */ |