bd8adc961585ff0ff33e2d8cdc5739e02cea63c3
[mafwsubrenderer] / gst-plugins-base-subtitles0.10 / gst-libs / gst / pbutils / gstpluginsbaseversion.h.in
1 /* GStreamer base plugins libraries version information
2  * Copyright (C) 2010 Tim-Philipp Müller <tim centricular net>
3  *
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.
8  *
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.
13  *
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.
18  */
19
20 #ifndef __GST_PLUGINS_BASE_VERSION_H__
21 #define __GST_PLUGINS_BASE_VERSION_H__
22
23 #include <glib.h>
24
25 G_BEGIN_DECLS
26
27 /**
28  * GST_PLUGINS_BASE_VERSION_MAJOR:
29  *
30  * The major version of GStreamer's gst-plugins-base libraries at compile time.
31  *
32  * Since: 0.10.31
33  */
34 #define GST_PLUGINS_BASE_VERSION_MAJOR (@PACKAGE_VERSION_MAJOR@)
35 /**
36  * GST_PLUGINS_BASE_VERSION_MINOR:
37  *
38  * The minor version of GStreamer's gst-plugins-base libraries at compile time.
39  *
40  * Since: 0.10.31
41  */
42 #define GST_PLUGINS_BASE_VERSION_MINOR (@PACKAGE_VERSION_MINOR@)
43 /**
44  * GST_PLUGINS_BASE_VERSION_MICRO:
45  *
46  * The micro version of GStreamer's gst-plugins-base libraries at compile time.
47  *
48  * Since: 0.10.31
49  */
50 #define GST_PLUGINS_BASE_VERSION_MICRO (@PACKAGE_VERSION_MICRO@)
51 /**
52  * GST_PLUGINS_BASE_VERSION_NANO:
53  *
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-...
56  *
57  * Since: 0.10.31
58  */
59 #define GST_PLUGINS_BASE_VERSION_NANO (@PACKAGE_VERSION_NANO@)
60
61 /**
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
66  *
67  * Check whether a GStreamer's gst-plugins-base libraries' version equal to
68  * or greater than major.minor.micro is present.
69  *
70  * Since: 0.10.31
71  */
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))
79
80 void     gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano);
81
82 gchar *  gst_plugins_base_version_string (void);
83
84 G_END_DECLS
85
86 #endif /* __GST_PLUGINS_BASE_VERSION_H__ */