2 * Copyright (C) 2009 Splitted-Desktop Systems. All Rights Reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the
6 * "Software"), to deal in the Software without restriction, including
7 * without limitation the rights to use, copy, modify, merge, publish,
8 * distribute, sub license, and/or sell copies of the Software, and to
9 * permit persons to whom the Software is furnished to do so, subject to
10 * the following conditions:
12 * The above copyright notice and this permission notice (including the
13 * next paragraph) shall be included in all copies or substantial portions
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
19 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
20 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 * The major version of the VA library (1, if %VA_VERSION is 1.2.3)
33 #define VA_MAJOR_VERSION (@LIBVA_MAJOR_VERSION@)
38 * The minor version of the VA library (2, if %VA_VERSION is 1.2.3)
40 #define VA_MINOR_VERSION (@LIBVA_MINOR_VERSION@)
45 * The micro version of the VA library (3, if %VA_VERSION is 1.2.3)
47 #define VA_MICRO_VERSION (@LIBVA_MICRO_VERSION@)
52 * The full version of the VA library, like 1.2.3
54 #define VA_VERSION @LIBVA_VERSION@
59 * The full version of the VA library, in string form (suited for
60 * string concatenation)
62 #define VA_VERSION_S "@LIBVA_VERSION@"
67 * Numerically encoded version of the VA library, like 0x010203
69 #define VA_VERSION_HEX ((VA_MAJOR_VERSION << 24) | \
70 (VA_MINOR_VERSION << 16) | \
71 (VA_MICRO_VERSION << 8))
75 * @major: major version, like 1 in 1.2.3
76 * @minor: minor version, like 2 in 1.2.3
77 * @micro: micro version, like 3 in 1.2.3
79 * Evaluates to %TRUE if the version of the VA library is greater
80 * than @major, @minor and @micro
82 #define VA_CHECK_VERSION(major,minor,micro) \
83 (VA_MAJOR_VERSION > (major) || \
84 (VA_MAJOR_VERSION == (major) && VA_MINOR_VERSION > (minor)) || \
85 (VA_MAJOR_VERSION == (major) && VA_MINOR_VERSION == (minor) && VA_MICRO_VERSION >= (micro)))
87 #endif /* VA_VERSION_H */