summaryrefslogtreecommitdiff
path: root/libavutil/log.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-04-28 20:00:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-04-28 20:00:23 +0000
commit2308b6c19a74c0b1af58c12ab379976b54bc83a2 (patch)
tree01c228ac7cac4cd32b96462741469a70ed64f087 /libavutil/log.h
parentb01dba14f36aa3ff3d6fe89acf71eddbd65e7027 (diff)
Add version to AVClass so we can add to and use fields of AVClass without ABI issues.
Originally committed as revision 22987 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/log.h')
-rw-r--r--libavutil/log.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/log.h b/libavutil/log.h
index b0a1493607..566440f854 100644
--- a/libavutil/log.h
+++ b/libavutil/log.h
@@ -48,6 +48,14 @@ typedef struct {
* @see av_set_default_options()
*/
const struct AVOption *option;
+
+ /**
+ * LIBAVUTIL_VERSION with which this structure was created.
+ * This is used to allow fields to be added without requireing major
+ * version bumps everywhere.
+ */
+
+ int version;
} AVClass;
/* av_log API */