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
6 * modify it under the terms of version 2 of the GNU Lesser General Public
7 * License as published by the Free Software Foundation.
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.
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.
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
33 #define EDS_MAJOR_VERSION @EDS_MAJOR_VERSION@
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
43 #define EDS_MINOR_VERSION @EDS_MINOR_VERSION@
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
53 #define EDS_MICRO_VERSION @EDS_MICRO_VERSION@
57 * @major: the major version number
58 * @minor: the minor version number
59 * @micro: the micro version number
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.
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))
76 * The major version number of the Evolution-Data-Server libraries.
77 * (e.g. in Evolution-Data-Server 2.24.1 this is 2.)
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.
83 extern const guint eds_major_version;
88 * The minor version number of the Evolution-Data-Server libraries.
89 * (e.g. in Evolution-Data-Server 2.24.1 this is 24.)
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.
95 extern const guint eds_minor_version;
100 * The micro version number of the Evolution-Data-Server libraries.
101 * (e.g. in Evolution-Data-Server 2.24.1 this is 1.)
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.
107 extern const guint eds_micro_version;
110 const gchar * eds_check_version (guint required_major,
111 guint required_minor,
112 guint required_micro);
116 #endif /* EDS_VERSION_H */