Commit 1308f273 authored by Michael Niedermayer's avatar Michael Niedermayer

Document ByteIOContext and URLContext change rules.

Originally committed as revision 11286 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 107b5f93
...@@ -29,6 +29,13 @@ typedef int64_t offset_t; ...@@ -29,6 +29,13 @@ typedef int64_t offset_t;
/* unbuffered I/O */ /* unbuffered I/O */
/**
* URL Context.
* New fields can be added to the end with minor version bumps.
* Removial, reordering and changes to existing fields require a Major
* version bump.
* sizeof(URLContext) must not be used outside libav*
*/
struct URLContext { struct URLContext {
struct URLProtocol *prot; struct URLProtocol *prot;
int flags; int flags;
...@@ -135,6 +142,13 @@ URLProtocol *av_protocol_next(URLProtocol *p); ...@@ -135,6 +142,13 @@ URLProtocol *av_protocol_next(URLProtocol *p);
int register_protocol(URLProtocol *protocol); int register_protocol(URLProtocol *protocol);
/**
* Bytestream IO Context.
* New fields can be added to the end with minor version bumps.
* Removial, reordering and changes to existing fields require a Major
* version bump.
* sizeof(ByteIOContext) must not be used outside libav*
*/
typedef struct { typedef struct {
unsigned char *buffer; unsigned char *buffer;
int buffer_size; int buffer_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment