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, write to the
19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
27 * @Short_description: Variables and functions to check the ATK version
28 * @Title: Versioning macros
30 * ATK provides a set of macros and methods for checking the version
31 * of the library at compile and run time.
35 * atk_get_major_version:
37 * Returns the major version number of the ATK library. (e.g. in ATK
38 * version 2.7.4 this is 2.)
40 * This function is in the library, so it represents the ATK library
41 * your code is running against. In contrast, the #ATK_MAJOR_VERSION
42 * macro represents the major version of the ATK headers you have
43 * included when compiling your code.
45 * Returns: the major version number of the ATK library
50 atk_get_major_version (void)
52 return ATK_MAJOR_VERSION;
56 * atk_get_minor_version:
58 * Returns the minor version number of the ATK library. (e.g. in ATK
59 * version 2.7.4 this is 7.)
61 * This function is in the library, so it represents the ATK library
62 * your code is are running against. In contrast, the
63 * #ATK_MINOR_VERSION macro represents the minor version of the ATK
64 * headers you have included when compiling your code.
66 * Returns: the minor version number of the ATK library
71 atk_get_minor_version (void)
73 return ATK_MINOR_VERSION;
77 * atk_get_micro_version:
79 * Returns the micro version number of the ATK library. (e.g. in ATK
80 * version 2.7.4 this is 4.)
82 * This function is in the library, so it represents the ATK library
83 * your code is are running against. In contrast, the
84 * #ATK_MICRO_VERSION macro represents the micro version of the ATK
85 * headers you have included when compiling your code.
87 * Returns: the micro version number of the ATK library
92 atk_get_micro_version (void)
94 return ATK_MICRO_VERSION;
100 * Returns the binary age as passed to libtool when building the ATK
101 * library the process is running against.
103 * Returns: the binary age of the ATK library
108 atk_get_binary_age (void)
110 return ATK_BINARY_AGE;
114 * atk_get_interface_age:
116 * Returns the interface age as passed to libtool when building the
117 * ATK library the process is running against.
119 * Returns: the interface age of the ATK library
124 atk_get_interface_age (void)
126 return ATK_INTERFACE_AGE;