build: Dist the Meson files
[platform/upstream/atk.git] / atk / atkversion.c
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, write to the
19  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20  * Boston, MA 02111-1307, USA.
21  */
22
23 #include "config.h"
24
25 #include "atk.h"
26
27 /**
28  * SECTION:atkversion
29  * @Short_description: Variables and functions to check the ATK version
30  * @Title: Versioning macros
31  *
32  * ATK provides a set of macros and methods for checking the version
33  * of the library at compile and run time.
34  */
35
36 /**
37  * atk_get_major_version:
38  *
39  * Returns the major version number of the ATK library.  (e.g. in ATK
40  * version 2.7.4 this is 2.)
41  *
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.
46  *
47  * Returns: the major version number of the ATK library
48  *
49  * Since: 2.8
50  */
51 guint
52 atk_get_major_version (void)
53 {
54   return ATK_MAJOR_VERSION;
55 }
56
57 /**
58  * atk_get_minor_version:
59  *
60  * Returns the minor version number of the ATK library.  (e.g. in ATK
61  * version 2.7.4 this is 7.)
62  *
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.
67  *
68  * Returns: the minor version number of the ATK library
69  *
70  * Since: 2.8
71  */
72 guint
73 atk_get_minor_version (void)
74 {
75   return ATK_MINOR_VERSION;
76 }
77
78 /**
79  * atk_get_micro_version:
80  *
81  * Returns the micro version number of the ATK library.  (e.g. in ATK
82  * version 2.7.4 this is 4.)
83  *
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.
88  *
89  * Returns: the micro version number of the ATK library
90  *
91  * Since: 2.8
92  */
93 guint
94 atk_get_micro_version (void)
95 {
96   return ATK_MICRO_VERSION;
97 }
98
99 /**
100  * atk_get_binary_age:
101  *
102  * Returns the binary age as passed to libtool when building the ATK
103  * library the process is running against.
104  *
105  * Returns: the binary age of the ATK library
106  *
107  * Since: 2.8
108  */
109 guint
110 atk_get_binary_age (void)
111 {
112   return ATK_BINARY_AGE;
113 }
114
115 /**
116  * atk_get_interface_age:
117  *
118  * Returns the interface age as passed to libtool when building the
119  * ATK library the process is running against.
120  *
121  * Returns: the interface age of the ATK library
122  *
123  * Since: 2.8
124  */
125 guint
126 atk_get_interface_age (void)
127 {
128   return ATK_INTERFACE_AGE;
129 }