doc: updating new symbol section on documentation
[atk.git] / atk / atkversion.c
bloba54aef95b2e28b2d0498a5abdb21e00353c3cd3d
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.
23 #include "atk.h"
25 /**
26 * SECTION:atkversion
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.
34 /**
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
47 * Since: 2.8
49 guint
50 atk_get_major_version (void)
52 return ATK_MAJOR_VERSION;
55 /**
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
68 * Since: 2.8
70 guint
71 atk_get_minor_version (void)
73 return ATK_MINOR_VERSION;
76 /**
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
89 * Since: 2.8
91 guint
92 atk_get_micro_version (void)
94 return ATK_MICRO_VERSION;
97 /**
98 * atk_get_binary_age:
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
105 * Since: 2.8
107 guint
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
121 * Since: 2.8
123 guint
124 atk_get_interface_age (void)
126 return ATK_INTERFACE_AGE;