1 /* ATK - Accessibility Toolkit
3 * Copyright (C) 2012 Igalia, S.L.
5 * Author: Alejandro PiƱeiro Iglesias <apinheiro@igalia.com>
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
21 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
22 #error "Only <atk/atk.h> can be included directly."
25 #ifndef __ATK_VERSION_H__
26 #define __ATK_VERSION_H__
31 * Like atk_get_major_version(), but from the headers used at
32 * application compile time, rather than from the library linked
33 * against at application run time.
37 #define ATK_MAJOR_VERSION (@ATK_MAJOR_VERSION@)
42 * Like atk_get_minor_version(), but from the headers used at
43 * application compile time, rather than from the library linked
44 * against at application run time.
48 #define ATK_MINOR_VERSION (@ATK_MINOR_VERSION@)
53 * Like atk_get_micro_version(), but from the headers used at
54 * application compile time, rather than from the library linked
55 * against at application run time.
59 #define ATK_MICRO_VERSION (@ATK_MICRO_VERSION@)
64 * Like atk_get_binary_age(), but from the headers used at
65 * application compile time, rather than from the library linked
66 * against at application run time.
70 #define ATK_BINARY_AGE (@ATK_BINARY_AGE@)
75 * Like atk_get_interface_age(), but from the headers used at
76 * application compile time, rather than from the library linked
77 * against at application run time.
81 #define ATK_INTERFACE_AGE (@ATK_INTERFACE_AGE@)
85 * @major: major version (e.g. 1 for version 1.2.5)
86 * @minor: minor version (e.g. 2 for version 1.2.5)
87 * @micro: micro version (e.g. 5 for version 1.2.5)
89 * Returns %TRUE if the version of the ATK header files is the same as
90 * or newer than the passed-in version.
94 #define ATK_CHECK_VERSION(major,minor,micro) \
95 (ATK_MAJOR_VERSION > (major) || \
96 (ATK_MAJOR_VERSION == (major) && ATK_MINOR_VERSION > (minor)) || \
97 (ATK_MAJOR_VERSION == (major) && ATK_MINOR_VERSION == (minor) && \
98 ATK_MICRO_VERSION >= (micro)))
101 guint atk_get_major_version (void) G_GNUC_CONST;
102 guint atk_get_minor_version (void) G_GNUC_CONST;
103 guint atk_get_micro_version (void) G_GNUC_CONST;
104 guint atk_get_binary_age (void) G_GNUC_CONST;
105 guint atk_get_interface_age (void) G_GNUC_CONST;
107 #define atk_major_version atk_get_major_version ()
108 #define atk_minor_version atk_get_minor_version ()
109 #define atk_micro_version atk_get_micro_version ()
110 #define atk_binary_age atk_get_binary_age ()
111 #define atk_interface_age atk_get_interface_age ()
113 #endif /* __ATK_VERSION_H__ */