1 /* GStreamer base plugins libraries version information
2 * Copyright (C) 2010 Tim-Philipp Müller <tim centricular net>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #ifndef __GST_PLUGINS_BASE_VERSION_H__
21 #define __GST_PLUGINS_BASE_VERSION_H__
28 * GST_PLUGINS_BASE_VERSION_MAJOR:
30 * The major version of GStreamer's gst-plugins-base libraries at compile time.
34 #define GST_PLUGINS_BASE_VERSION_MAJOR (@PACKAGE_VERSION_MAJOR@)
36 * GST_PLUGINS_BASE_VERSION_MINOR:
38 * The minor version of GStreamer's gst-plugins-base libraries at compile time.
42 #define GST_PLUGINS_BASE_VERSION_MINOR (@PACKAGE_VERSION_MINOR@)
44 * GST_PLUGINS_BASE_VERSION_MICRO:
46 * The micro version of GStreamer's gst-plugins-base libraries at compile time.
50 #define GST_PLUGINS_BASE_VERSION_MICRO (@PACKAGE_VERSION_MICRO@)
52 * GST_PLUGINS_BASE_VERSION_NANO:
54 * The nano version of GStreamer's gst-plugins-base libraries at compile time.
55 * Actual releases have 0, GIT versions have 1, prerelease versions have 2-...
59 #define GST_PLUGINS_BASE_VERSION_NANO (@PACKAGE_VERSION_NANO@)
62 * GST_CHECK_PLUGIN_BASE_VERSION:
63 * @major: a number indicating the major version
64 * @minor: a number indicating the minor version
65 * @micro: a number indicating the micro version
67 * Check whether a GStreamer's gst-plugins-base libraries' version equal to
68 * or greater than major.minor.micro is present.
72 #define GST_CHECK_PLUGINS_BASE_VERSION(major,minor,micro) \
73 (GST_PLUGINS_BASE_VERSION_MAJOR > (major) || \
74 (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR > (minor)) || \
75 (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
76 GST_PLUGINS_BASE_VERSION_MICRO >= (micro)) || \
77 (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \
78 GST_PLUGINS_BASE_VERSION_MICRO + 1 == (micro) && GST_PLUGINS_BASE_VERSION_NANO > 0))
80 void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano);
82 gchar * gst_plugins_base_version_string (void);
86 #endif /* __GST_PLUGINS_BASE_VERSION_H__ */