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
 * atkversion:
29
 *
30
 * TODO title Versioning macros
31
 *
32
 * Variables and functions to check the ATK version
33
 *
34
 * ATK provides a set of macros and methods for checking the version
35
 * of the library at compile and run time.
36
 */
37

            
38
/**
39
 * atk_get_major_version:
40
 *
41
 * Returns the major version number of the ATK library.  (e.g. in ATK
42
 * version 2.7.4 this is 2.)
43
 *
44
 * This function is in the library, so it represents the ATK library
45
 * your code is running against. In contrast, the #ATK_MAJOR_VERSION
46
 * macro represents the major version of the ATK headers you have
47
 * included when compiling your code.
48
 *
49
 * Returns: the major version number of the ATK library
50
 *
51
 * Since: 2.8
52
 */
53
guint
54
atk_get_major_version (void)
55
{
56
  return ATK_MAJOR_VERSION;
57
}
58

            
59
/**
60
 * atk_get_minor_version:
61
 *
62
 * Returns the minor version number of the ATK library.  (e.g. in ATK
63
 * version 2.7.4 this is 7.)
64
 *
65
 * This function is in the library, so it represents the ATK library
66
 * your code is are running against. In contrast, the
67
 * #ATK_MINOR_VERSION macro represents the minor version of the ATK
68
 * headers you have included when compiling your code.
69
 *
70
 * Returns: the minor version number of the ATK library
71
 *
72
 * Since: 2.8
73
 */
74
guint
75
atk_get_minor_version (void)
76
{
77
  return ATK_MINOR_VERSION;
78
}
79

            
80
/**
81
 * atk_get_micro_version:
82
 *
83
 * Returns the micro version number of the ATK library.  (e.g. in ATK
84
 * version 2.7.4 this is 4.)
85
 *
86
 * This function is in the library, so it represents the ATK library
87
 * your code is are running against. In contrast, the
88
 * #ATK_MICRO_VERSION macro represents the micro version of the ATK
89
 * headers you have included when compiling your code.
90
 *
91
 * Returns: the micro version number of the ATK library
92
 *
93
 * Since: 2.8
94
 */
95
guint
96
atk_get_micro_version (void)
97
{
98
  return ATK_MICRO_VERSION;
99
}
100

            
101
/**
102
 * atk_get_binary_age:
103
 *
104
 * Returns the binary age as passed to libtool when building the ATK
105
 * library the process is running against.
106
 *
107
 * Returns: the binary age of the ATK library
108
 *
109
 * Since: 2.8
110
 */
111
guint
112
atk_get_binary_age (void)
113
{
114
  return ATK_BINARY_AGE;
115
}
116

            
117
/**
118
 * atk_get_interface_age:
119
 *
120
 * Returns the interface age as passed to libtool when building the
121
 * ATK library the process is running against.
122
 *
123
 * Returns: the interface age of the ATK library
124
 *
125
 * Since: 2.8
126
 */
127
guint
128
atk_get_interface_age (void)
129
{
130
  return ATK_INTERFACE_AGE;
131
}