1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
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
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/>.
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
32 #define EDS_MAJOR_VERSION @PROJECT_VERSION_MAJOR@
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
42 #define EDS_MINOR_VERSION @PROJECT_VERSION_MINOR@
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
52 #define EDS_MICRO_VERSION @PROJECT_VERSION_PATCH@
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.
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))
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.
82 extern const guint eds_major_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.
94 extern const guint eds_minor_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
);
115 #endif /* EDS_VERSION_H */