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., 51 Franklin St, Fifth Floor, |
17 | * Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #ifndef __GST_PLUGINS_BASE_VERSION_H__ |
21 | #define __GST_PLUGINS_BASE_VERSION_H__ |
22 | |
23 | #include <gst/gst.h> |
24 | #include <gst/pbutils/pbutils-prelude.h> |
25 | |
26 | G_BEGIN_DECLS |
27 | |
28 | /** |
29 | * GST_PLUGINS_BASE_VERSION_MAJOR: |
30 | * |
31 | * The major version of GStreamer's gst-plugins-base libraries at compile time. |
32 | */ |
33 | #define GST_PLUGINS_BASE_VERSION_MAJOR (1) |
34 | /** |
35 | * GST_PLUGINS_BASE_VERSION_MINOR: |
36 | * |
37 | * The minor version of GStreamer's gst-plugins-base libraries at compile time. |
38 | */ |
39 | #define GST_PLUGINS_BASE_VERSION_MINOR (20) |
40 | /** |
41 | * GST_PLUGINS_BASE_VERSION_MICRO: |
42 | * |
43 | * The micro version of GStreamer's gst-plugins-base libraries at compile time. |
44 | */ |
45 | #define GST_PLUGINS_BASE_VERSION_MICRO (1) |
46 | /** |
47 | * GST_PLUGINS_BASE_VERSION_NANO: |
48 | * |
49 | * The nano version of GStreamer's gst-plugins-base libraries at compile time. |
50 | * Actual releases have 0, GIT versions have 1, prerelease versions have 2-... |
51 | */ |
52 | #define GST_PLUGINS_BASE_VERSION_NANO (0) |
53 | |
54 | /** |
55 | * GST_CHECK_PLUGIN_BASE_VERSION: |
56 | * @major: a number indicating the major version |
57 | * @minor: a number indicating the minor version |
58 | * @micro: a number indicating the micro version |
59 | * |
60 | * Check whether a GStreamer's gst-plugins-base libraries' version equal to |
61 | * or greater than major.minor.micro is present. |
62 | */ |
63 | #define GST_CHECK_PLUGINS_BASE_VERSION(major,minor,micro) \ |
64 | (GST_PLUGINS_BASE_VERSION_MAJOR > (major) || \ |
65 | (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR > (minor)) || \ |
66 | (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \ |
67 | GST_PLUGINS_BASE_VERSION_MICRO >= (micro)) || \ |
68 | (GST_PLUGINS_BASE_VERSION_MAJOR == (major) && GST_PLUGINS_BASE_VERSION_MINOR == (minor) && \ |
69 | GST_PLUGINS_BASE_VERSION_MICRO + 1 == (micro) && GST_PLUGINS_BASE_VERSION_NANO > 0)) |
70 | |
71 | GST_PBUTILS_API |
72 | void gst_plugins_base_version (guint *major, guint *minor, guint *micro, guint *nano); |
73 | |
74 | GST_PBUTILS_API |
75 | gchar * gst_plugins_base_version_string (void); |
76 | |
77 | G_END_DECLS |
78 | |
79 | #endif /* __GST_PLUGINS_BASE_VERSION_H__ */ |
80 | |