summaryrefslogtreecommitdiff
path: root/libavformat/avio_internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-17 08:44:44 +0100
committerAnton Khirnov <anton@khirnov.net>2011-04-03 22:47:39 +0200
commit724f6a0fa43f615dcebb2cb16ccb7c60ef7ec95c (patch)
tree1f0ef0812a25da2ba0710e104ec134c47225c273 /libavformat/avio_internal.h
parent403ee835e7913eb9536b22c2b22edfdd700166a9 (diff)
avio: make url_fdopen internal.
The unbuffered URLContext API will be made private, so there's no point in this function being public.
Diffstat (limited to 'libavformat/avio_internal.h')
-rw-r--r--libavformat/avio_internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h
index 29553ed614..b0f96cfa53 100644
--- a/libavformat/avio_internal.h
+++ b/libavformat/avio_internal.h
@@ -92,4 +92,17 @@ unsigned long ff_crc04C11DB7_update(unsigned long checksum, const uint8_t *buf,
*/
int ffio_open_dyn_packet_buf(AVIOContext **s, int max_packet_size);
+/**
+ * Create and initialize a AVIOContext for accessing the
+ * resource referenced by the URLContext h.
+ * @note When the URLContext h has been opened in read+write mode, the
+ * AVIOContext can be used only for writing.
+ *
+ * @param s Used to return the pointer to the created AVIOContext.
+ * In case of failure the pointed to value is set to NULL.
+ * @return 0 in case of success, a negative value corresponding to an
+ * AVERROR code in case of failure
+ */
+int ffio_fdopen(AVIOContext **s, URLContext *h);
+
#endif // AVFORMAT_AVIO_INTERNAL_H