summaryrefslogtreecommitdiff
path: root/clutter-gst/clutter-gst-version.h.in
blob: efecf1f703d87f64d5012f9aebd7a22c1c22652f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
 * Clutter-GStreamer.
 *
 * GStreamer integration library for Clutter.
 *
 * Authored By Matthew Allum  <mallum@openedhand.com>
 *
 * Copyright (C) 2006 OpenedHand
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#if !defined(__CLUTTER_GST_H_INSIDE__) && !defined(CLUTTER_GST_COMPILATION)
#error "Only <clutter-gst/clutter-gst.h> can be included directly."
#endif

#ifndef __CLUTTER_GST_VERSION_H__
#define __CLUTTER_GST_VERSION_H__

/**
 * SECTION:clutter-gst-version
 * @short_description: Versioning Macros
 *
 * Version checking macros.
 */

/**
 * CLUTTER_GST_MAJOR_VERSION:
 *
 * ClutterGst major version (e.g. "1", if %CLUTTER_GST_VERSION is "1.2.3")
 */
#define CLUTTER_GST_MAJOR_VERSION   (@CLUTTER_GST_MAJOR_VERSION@)

/**
 * CLUTTER_GST_MINOR_VERSION:
 *
 * ClutterGst minor version (e.g. "2", if %CLUTTER_GST_VERSION is "1.2.3")
 */
#define CLUTTER_GST_MINOR_VERSION   (@CLUTTER_GST_MINOR_VERSION@)

/**
 * CLUTTER_GST_MICRO_VERSION:
 *
 * ClutterGst micro version (e.g. "3", if %CLUTTER_GST_VERSION is "1.2.3")
 */
#define CLUTTER_GST_MICRO_VERSION   (@CLUTTER_GST_MICRO_VERSION@)

/**
 * CLUTTER_GST_VERSION:
 *
 * ClutterGst full version (e.g. "1.2.3")
 */
#define CLUTTER_GST_VERSION         (@CLUTTER_GST_VERSION@)

/**
 * CLUTTER_GST_VERSION_S:
 *
 * ClutterGst full version, encoded as a string.
 */
#define CLUTTER_GST_VERSION_S       "@CLUTTER_GST_VERSION@"

/**
 * CLUTTER_GST_VERSION_HEX:
 *
 * ClutterGst full version, encoded as an hexadecimal value.
 */
#define CLUTTER_GST_VERSION_HEX     ((CLUTTER_GST_MAJOR_VERSION << 24) | \
                                     (CLUTTER_GST_MINOR_VERSION << 16) | \
                                     (CLUTTER_GST_MICRO_VERSION << 8))

/**
 * CLUTTER_GST_CHECK_VERSION:
 * @major: major version, like 1 in 1.2.3
 * @minor: minor version, like 2 in 1.2.3
 * @micro: micro version, like 3 in 1.2.3
 *
 * Evaluates to %TRUE if the version of ClutterGst is greater than
 * the @major, @minor and @micro values.
 */
#define CLUTTER_GST_CHECK_VERSION(major,minor,micro) \
        (CLUTTER_GST_MAJOR_VERSION > (major) || \
         (CLUTTER_GST_MAJOR_VERSION == (major) && CLUTTER_GST_MINOR_VERSION > (minor)) || \
         (CLUTTER_GST_MAJOR_VERSION == (major) && CLUTTER_GST_MINOR_VERSION == (minor) && CLUTTER_GST_MICRO_VERSION >= (micro)))

#endif /* __CLUTTER_GST_VERSION_H__ */