I#27 - [IMAPx] Ignore DavMail's CR/LF in BODYSTRUCTURE response
[evolution-data-server.git] / src / libedataserver / eds-version.h.in
blobfb709f2420b0a5fb14cdf997da50be24ba086744
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Copyright (C) 2008 Novell, Inc.
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.
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 Lesser General Public License
12 * for more details.
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/>.
19 #ifndef EDS_VERSION_H
20 #define EDS_VERSION_H
22 #include <glib.h>
24 /**
25 * EDS_MAJOR_VERSION:
27 * The major version number of the Evolution-Data-Server library. Like
28 * eds_major_version(), but from the headers used at application compile
29 * time, rather than from the library linked against at application run
30 * time.
31 **/
32 #define EDS_MAJOR_VERSION @PROJECT_VERSION_MAJOR@
34 /**
35 * EDS_MINOR_VERSION:
37 * The minor version number of the Evolution-Data-Server library. Like
38 * eds_minor_version(), but from the headers used at application compile
39 * time, rather than from the library linked against at application run
40 * time.
41 **/
42 #define EDS_MINOR_VERSION @PROJECT_VERSION_MINOR@
44 /**
45 * EDS_MICRO_VERSION:
47 * The micro version number of the Evolution-Data-Server library. Like
48 * eds_micro_version(), but from the headers used at application compile
49 * time, rather than from the library linked against at application run
50 * time.
51 **/
52 #define EDS_MICRO_VERSION @PROJECT_VERSION_PATCH@
54 /**
55 * EDS_CHECK_VERSION:
56 * @major: the major version number
57 * @minor: the minor version number
58 * @micro: the micro version number
60 * Checks the version of the Evolution-Data-Server library. Returns
61 * %TRUE if the version of the EDS header files is the same as or newer
62 * than the passed-in version.
63 **/
64 #define EDS_CHECK_VERSION(major,minor,micro) \
65 (EDS_MAJOR_VERSION > (major) || \
66 (EDS_MAJOR_VERSION == (major) && EDS_MINOR_VERSION > (minor)) || \
67 (EDS_MAJOR_VERSION == (major) && EDS_MINOR_VERSION == (minor)) && \
68 EDS_MICRO_VERSION >= (micro))
70 G_BEGIN_DECLS
72 /**
73 * eds_major_version:
75 * The major version number of the Evolution-Data-Server libraries.
76 * (e.g. in Evolution-Data-Server 2.24.1 this is 2.)
78 * This variable is in the library, so it represents the EDS library you
79 * have linked against. Contrast with the EDS_MAJOR_VERSION macro, which
80 * represents the major version of the EDS headers you have included.
81 **/
82 extern const guint eds_major_version;
84 /**
85 * eds_minor_version:
87 * The minor version number of the Evolution-Data-Server libraries.
88 * (e.g. in Evolution-Data-Server 2.24.1 this is 24.)
90 * This variable is in the library, so it represents the EDS library you
91 * have linked against. Contrast with the EDS_MINOR_VERSION macro, which
92 * represents the minor version of the EDS headers you have included.
93 **/
94 extern const guint eds_minor_version;
96 /**
97 * eds_micro_version:
99 * The micro version number of the Evolution-Data-Server libraries.
100 * (e.g. in Evolution-Data-Server 2.24.1 this is 1.)
102 * This variable is in the library, so it represents the EDS library you
103 * have linked against. Contrast with the EDS_MICRO_VERSION macro, which
104 * represents the micro version of the EDS headers you have included.
106 extern const guint eds_micro_version;
109 const gchar * eds_check_version (guint required_major,
110 guint required_minor,
111 guint required_micro);
113 G_END_DECLS
115 #endif /* EDS_VERSION_H */