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