Updated FSF's address
[platform/upstream/atk.git] / atk / atkversion.h.in
1 /* ATK -  Accessibility Toolkit
2  *
3  * Copyright (C) 2012 Igalia, S.L.
4  *
5  * Author: Alejandro PiƱeiro Iglesias <apinheiro@igalia.com>
6  *
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.
11  *
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.
16  *
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/>.
19  */
20
21 #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
22 #error "Only <atk/atk.h> can be included directly."
23 #endif
24
25 #ifndef __ATK_VERSION_H__
26 #define __ATK_VERSION_H__
27
28 /**
29  * ATK_MAJOR_VERSION:
30  *
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.
34  *
35  * Since: 2.7.4
36  */
37 #define ATK_MAJOR_VERSION (@ATK_MAJOR_VERSION@)
38
39 /**
40  * ATK_MINOR_VERSION:
41  *
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.
45  *
46  * Since: 2.7.4
47  */
48 #define ATK_MINOR_VERSION (@ATK_MINOR_VERSION@)
49
50 /**
51  * ATK_MICRO_VERSION:
52  *
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.
56  *
57  * Since: 2.7.4
58  */
59 #define ATK_MICRO_VERSION (@ATK_MICRO_VERSION@)
60
61 /**
62  * ATK_BINARY_AGE:
63  *
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.
67  *
68  * Since: 2.7.4
69  */
70 #define ATK_BINARY_AGE    (@ATK_BINARY_AGE@)
71
72 /**
73  * ATK_INTERFACE_AGE:
74  *
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.
78  *
79  * Since: 2.7.4
80  */
81 #define ATK_INTERFACE_AGE (@ATK_INTERFACE_AGE@)
82
83 /**
84  * ATK_CHECK_VERSION:
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)
88  *
89  * Returns %TRUE if the version of the ATK header files is the same as
90  * or newer than the passed-in version.
91  *
92  * Since: 2.7.4
93  */
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)))
99
100
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;
106
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 ()
112
113 #endif /* __ATK_VERSION_H__ */