diff avio.h @ 3744:b140b68a3747 libavformat

Implement url_open_protocol(), which is basiclly the former url_open() but which opens a URLProtocol instead of a filename. url_open() is reimplemented to call url_open_protocol(). See discussion on "url_open_protocol" on ffmpeg-devel.
author rbultje
date Tue, 19 Aug 2008 23:44:23 +0000
parents 814a32de9ec7
children 1b6245500d8c
line wrap: on
line diff
--- a/avio.h	Tue Aug 19 22:01:57 2008 +0000
+++ b/avio.h	Tue Aug 19 23:44:23 2008 +0000
@@ -62,6 +62,8 @@
 
 typedef int URLInterruptCB(void);
 
+int url_open_protocol (URLContext **puc, struct URLProtocol *up,
+                       const char *filename, int flags);
 int url_open(URLContext **h, const char *filename, int flags);
 int url_read(URLContext *h, unsigned char *buf, int size);
 int url_write(URLContext *h, unsigned char *buf, int size);