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 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/>.
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
31 #define EDS_MAJOR_VERSION @EDS_MAJOR_VERSION@
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
41 #define EDS_MINOR_VERSION @EDS_MINOR_VERSION@
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
51 #define EDS_MICRO_VERSION @EDS_MICRO_VERSION@
55 * @major: the major version number
56 * @minor: the minor version number
57 * @micro: the micro version number
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.
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))
74 * The major version number of the Evolution-Data-Server libraries.
75 * (e.g. in Evolution-Data-Server 2.24.1 this is 2.)
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.
81 extern const guint eds_major_version;
86 * The minor version number of the Evolution-Data-Server libraries.
87 * (e.g. in Evolution-Data-Server 2.24.1 this is 24.)
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.
93 extern const guint eds_minor_version;
98 * The micro version number of the Evolution-Data-Server libraries.
99 * (e.g. in Evolution-Data-Server 2.24.1 this is 1.)
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.
105 extern const guint eds_micro_version;
108 const gchar * eds_check_version (guint required_major,
109 guint required_minor,
110 guint required_micro);
114 #endif /* EDS_VERSION_H */