summaryrefslogtreecommitdiff
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorDale Curtis <dalecurtis@chromium.org>2012-09-26 19:21:03 -0700
committerDiego Biurrun <diego@biurrun.de>2012-09-27 09:14:22 +0200
commit0575772fa04e77fbb3755ad1cb8f040713c1e0d7 (patch)
tree88dc468c12c93bcc947eba1009f95ed94cd79834 /libavformat/avio.h
parent93e81ee81c33e74e6047053f6086d63d2f8293d4 (diff)
avformat: Identify anonymous AVIO typedef structs.
Anonymous typedef structs prevent forward declaration, this change gives the AVIOContext and AVIOInterruptCB structures a name. These structures are now in line with other common structures such as AVFormatContext and AVCodecContext. Signed-off-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 55c96bc432..96e8e1ce77 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -48,7 +48,7 @@
* new elements have been added after this struct in AVFormatContext
* or AVIOContext.
*/
-typedef struct {
+typedef struct AVIOInterruptCB {
int (*callback)(void*);
void *opaque;
} AVIOInterruptCB;
@@ -65,7 +65,7 @@ typedef struct {
* when implementing custom I/O. Normally these are set to the
* function pointers specified in avio_alloc_context()
*/
-typedef struct {
+typedef struct AVIOContext {
/**
* A class for private options.
*