Mercurial > libavformat.hg
diff avio.h @ 6159:3fcaee5cf416 libavformat
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.
author | mstorsjo |
---|---|
date | Tue, 22 Jun 2010 13:58:48 +0000 |
parents | 7fdda2416684 |
children | 1b4be334ef89 |
line wrap: on
line diff
--- a/avio.h Tue Jun 22 08:48:28 2010 +0000 +++ b/avio.h Tue Jun 22 13:58:48 2010 +0000 @@ -252,12 +252,19 @@ * @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.