summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-24 13:31:25 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-01-24 13:31:25 +0000
commit333146ddc57c34633d4cdfdb77a019f08472bbb3 (patch)
treecbc45acfe6e0af95b1fbc4da836b8fca98211062 /libavformat/avio.h
parent50eb40a799aa4f93eb8fa872faab80660ac20a51 (diff)
Doxument url_open_protocol().
Originally committed as revision 21417 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 0ab351310e..d7b7e2630d 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -65,8 +65,20 @@ typedef struct URLPollEntry {
typedef int URLInterruptCB(void);
+/**
+ * Creates an URLContext for accessing to the resource indicated by
+ * filename, and opens it using the URLProtocol up.
+ *
+ * @param puc pointer to the location where, in case of success, the
+ * function puts the pointer to the created URLContext
+ * @param flags flags which control how the resource indicated by filename
+ * is to be opened
+ * @return 0 in case of success, a negative value corresponding to an
+ * AVERROR code in case of failure
+ */
int url_open_protocol (URLContext **puc, struct URLProtocol *up,
const char *filename, int flags);
+
int url_open(URLContext **h, const char *filename, int flags);
/**