summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-06-22 13:58:48 +0000
committerMartin Storsjö <martin@martin.st>2010-06-22 13:58:48 +0000
commit9b07a2dc02e9b14e5b18485e7b16333a520b5dbb (patch)
tree7a6fad5f3125dddfb50a48d3ff976936c045f4b6 /libavformat/avio.h
parente10412a334092bc2884674799318ff7fc60be785 (diff)
Add an av_register_protocol2 function that takes a size parameter
This allows extending the URLProtocol struct without breaking binary compatibility with code compiled with older definitions of the struct. Originally committed as revision 23702 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 2b15e8d76b..7aefe1a1c4 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -252,12 +252,19 @@ URLProtocol *av_protocol_next(URLProtocol *p);
* @deprecated Use av_register_protocol() instead.
*/
attribute_deprecated int register_protocol(URLProtocol *protocol);
+
+/**
+ * @deprecated Use av_register_protocol2() instead.
+ */
+attribute_deprecated int av_register_protocol(URLProtocol *protocol);
#endif
/**
* Registers the URLProtocol protocol.
+ *
+ * @param size the size of the URLProtocol struct referenced
*/
-int av_register_protocol(URLProtocol *protocol);
+int av_register_protocol2(URLProtocol *protocol, int size);
/**
* Bytestream IO Context.