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.

Originally committed as revision 14857 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ronald S. Bultje
2008-08-19 23:44:23 +00:00
parent b76e3424ca
commit ba99cfc213
2 changed files with 39 additions and 32 deletions

View File

@@ -62,6 +62,8 @@ typedef struct URLPollEntry {
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);