summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-31 16:00:49 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-04 07:46:29 +0200
commit333e8943635b794099b1fb04e9d3fbb4b16a75b2 (patch)
tree66724baa713e89f129d7cdd8dcab167e3c605030 /libavformat/avio.h
parente2307053925260331803412b35e5731069e787c3 (diff)
avio: deprecate url_open_protocol
The unbuffered API will be made private and it's not used anywhere internally.
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 8130c7c661..6279cdeb60 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -94,19 +94,15 @@ typedef struct URLPollEntry {
typedef int URLInterruptCB(void);
+#if FF_API_OLD_AVIO
/**
- * Create a URLContext for accessing to the resource indicated by
- * url, and open 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 url
- * is to be opened
- * @return 0 in case of success, a negative value corresponding to an
- * AVERROR code in case of failure
+ * @defgroup old_url_funcs Old url_* functions
+ * @deprecated use the buffered API based on AVIOContext instead
+ * @{
*/
-int url_open_protocol (URLContext **puc, struct URLProtocol *up,
- const char *url, int flags);
+attribute_deprecated int url_open_protocol (URLContext **puc, struct URLProtocol *up,
+ const char *url, int flags);
+#endif
/**
* Create a URLContext for accessing to the resource indicated by
@@ -339,6 +335,10 @@ int av_register_protocol2(URLProtocol *protocol, int size);
#define AVIO_SEEKABLE_NORMAL 0x0001 /**< Seeking works like for a local file */
/**
+ * @}
+ */
+
+/**
* Bytestream IO Context.
* New fields can be added to the end with minor version bumps.
* Removal, reordering and changes to existing fields require a major