changes: Bump to 3.8.1
[platform/upstream/evolution-data-server.git] / libedataserver / eds-version.h.in
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2008 Novell, Inc.
4  *
5  * This library is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation.
8  *
9  * This library is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12  * for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, see <http://www.gnu.org/licenses/>.
16  */
17
18 #ifndef EDS_VERSION_H
19 #define EDS_VERSION_H
20
21 #include <glib.h>
22
23 /**
24  * EDS_MAJOR_VERSION:
25  *
26  * The major version number of the Evolution-Data-Server library.  Like
27  * eds_major_version(), but from the headers used at application compile
28  * time, rather than from the library linked against at application run
29  * time.
30  **/
31 #define EDS_MAJOR_VERSION @EDS_MAJOR_VERSION@
32
33 /**
34  * EDS_MINOR_VERSION:
35  *
36  * The minor version number of the Evolution-Data-Server library.  Like
37  * eds_minor_version(), but from the headers used at application compile
38  * time, rather than from the library linked against at application run
39  * time.
40  **/
41 #define EDS_MINOR_VERSION @EDS_MINOR_VERSION@
42
43 /**
44  * EDS_MICRO_VERSION:
45  *
46  * The micro version number of the Evolution-Data-Server library.  Like
47  * eds_micro_version(), but from the headers used at application compile
48  * time, rather than from the library linked against at application run
49  * time.
50  **/
51 #define EDS_MICRO_VERSION @EDS_MICRO_VERSION@
52
53 /**
54  * EDS_CHECK_VERSION:
55  * @major: the major version number
56  * @minor: the minor version number
57  * @micro: the micro version number
58  *
59  * Checks the version of the Evolution-Data-Server library.  Returns
60  * %TRUE if the version of the EDS header files is the same as or newer
61  * than the passed-in version.
62  **/
63 #define EDS_CHECK_VERSION(major,minor,micro) \
64         (EDS_MAJOR_VERSION > (major) || \
65         (EDS_MAJOR_VERSION == (major) && EDS_MINOR_VERSION > (minor)) || \
66         (EDS_MAJOR_VERSION == (major) && EDS_MINOR_VERSION == (minor)) && \
67          EDS_MICRO_VERSION >= (micro))
68
69 G_BEGIN_DECLS
70
71 /**
72  * eds_major_version:
73  *
74  * The major version number of the Evolution-Data-Server libraries.
75  * (e.g. in Evolution-Data-Server 2.24.1 this is 2.)
76  *
77  * This variable is in the library, so it represents the EDS library you
78  * have linked against.  Contrast with the EDS_MAJOR_VERSION macro, which
79  * represents the major version of the EDS headers you have included.
80  **/
81 extern const guint eds_major_version;
82
83 /**
84  * eds_minor_version:
85  *
86  * The minor version number of the Evolution-Data-Server libraries.
87  * (e.g. in Evolution-Data-Server 2.24.1 this is 24.)
88  *
89  * This variable is in the library, so it represents the EDS library you
90  * have linked against.  Contrast with the EDS_MINOR_VERSION macro, which
91  * represents the minor version of the EDS headers you have included.
92  **/
93 extern const guint eds_minor_version;
94
95 /**
96  * eds_micro_version:
97  *
98  * The micro version number of the Evolution-Data-Server libraries.
99  * (e.g. in Evolution-Data-Server 2.24.1 this is 1.)
100  *
101  * This variable is in the library, so it represents the EDS library you
102  * have linked against.  Contrast with the EDS_MICRO_VERSION macro, which
103  * represents the micro version of the EDS headers you have included.
104  **/
105 extern const guint eds_micro_version;
106
107
108 const gchar *   eds_check_version               (guint required_major,
109                                                  guint required_minor,
110                                                  guint required_micro);
111
112 G_END_DECLS
113
114 #endif /* EDS_VERSION_H */