diff -r 71e347f905f2 -r 4a7fac7dd34a gstreamer_core/gst/gstversion.h --- a/gstreamer_core/gst/gstversion.h Fri Mar 19 09:35:09 2010 +0200 +++ b/gstreamer_core/gst/gstversion.h Fri Apr 16 15:15:52 2010 +0300 @@ -57,15 +57,32 @@ * * The micro version of GStreamer at compile time: */ -#define GST_VERSION_MICRO (19) //rj +#define GST_VERSION_MICRO (24) /** * GST_VERSION_NANO: * * The nano version of GStreamer at compile time: - * Actual releases have 0, CVS versions have 1, prerelease versions have 2-... + * Actual releases have 0, GIT versions have 1, prerelease versions have 2-... */ #define GST_VERSION_NANO (0) +/** + * GST_CHECK_VERSION: + * @major: a number indicating the major version + * @minor: a number indicating the minor version + * @micro: a number indicating the micro version + * + * Check whether a GStreamer version equal to or greater than + * major.minor.micro is present. + * + * Since: 0.10.18 + */ +#define GST_CHECK_VERSION(major,minor,micro) \ + (GST_VERSION_MAJOR > (major) || \ + (GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR > (minor)) || \ + (GST_VERSION_MAJOR == (major) && GST_VERSION_MINOR == (minor) && \ + GST_VERSION_MICRO >= (micro))) + G_END_DECLS #endif /* __GST_VERSION_H__ */