MSVC 2010+ Builds: Fix .pdb File Generation
[atk.git] / atk / atkversion.c
blobeae1460b839ae16abd18a3828107f8bf9fc0aeb7
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 "config.h"
25 #include "atk.h"
27 /**
28 * SECTION:atkversion
29 * @Short_description: Variables and functions to check the ATK version
30 * @Title: Versioning macros
32 * ATK provides a set of macros and methods for checking the version
33 * of the library at compile and run time.
36 /**
37 * atk_get_major_version:
39 * Returns the major version number of the ATK library. (e.g. in ATK
40 * version 2.7.4 this is 2.)
42 * This function is in the library, so it represents the ATK library
43 * your code is running against. In contrast, the #ATK_MAJOR_VERSION
44 * macro represents the major version of the ATK headers you have
45 * included when compiling your code.
47 * Returns: the major version number of the ATK library
49 * Since: 2.8
51 guint
52 atk_get_major_version (void)
54 return ATK_MAJOR_VERSION;
57 /**
58 * atk_get_minor_version:
60 * Returns the minor version number of the ATK library. (e.g. in ATK
61 * version 2.7.4 this is 7.)
63 * This function is in the library, so it represents the ATK library
64 * your code is are running against. In contrast, the
65 * #ATK_MINOR_VERSION macro represents the minor version of the ATK
66 * headers you have included when compiling your code.
68 * Returns: the minor version number of the ATK library
70 * Since: 2.8
72 guint
73 atk_get_minor_version (void)
75 return ATK_MINOR_VERSION;
78 /**
79 * atk_get_micro_version:
81 * Returns the micro version number of the ATK library. (e.g. in ATK
82 * version 2.7.4 this is 4.)
84 * This function is in the library, so it represents the ATK library
85 * your code is are running against. In contrast, the
86 * #ATK_MICRO_VERSION macro represents the micro version of the ATK
87 * headers you have included when compiling your code.
89 * Returns: the micro version number of the ATK library
91 * Since: 2.8
93 guint
94 atk_get_micro_version (void)
96 return ATK_MICRO_VERSION;
99 /**
100 * atk_get_binary_age:
102 * Returns the binary age as passed to libtool when building the ATK
103 * library the process is running against.
105 * Returns: the binary age of the ATK library
107 * Since: 2.8
109 guint
110 atk_get_binary_age (void)
112 return ATK_BINARY_AGE;
116 * atk_get_interface_age:
118 * Returns the interface age as passed to libtool when building the
119 * ATK library the process is running against.
121 * Returns: the interface age of the ATK library
123 * Since: 2.8
125 guint
126 atk_get_interface_age (void)
128 return ATK_INTERFACE_AGE;