Initialize the gmime for upstream
[platform/upstream/gmime.git] / gmime / gmime-version.h.in
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*  GMime
3  *  Copyright (C) 2000-2012 Jeffrey Stedfast
4  *
5  *  This library is free software; you can redistribute it and/or
6  *  modify it under the terms of the GNU Lesser General Public License
7  *  as published by the Free Software Foundation; either version 2.1
8  *  of the License, or (at your option) any later version.
9  *
10  *  This library is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  *  Lesser General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Lesser General Public
16  *  License along with this library; if not, write to the Free
17  *  Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
18  *  02110-1301, USA.
19  */
20
21
22 #ifndef __GMIME_VERSION_H__
23 #define __GMIME_VERSION_H__
24
25 /**
26  * GMIME_MAJOR_VERSION:
27  *
28  * GMime's major version.
29  **/
30 #define GMIME_MAJOR_VERSION (@GMIME_MAJOR_VERSION@)
31
32 /**
33  * GMIME_MINOR_VERSION:
34  *
35  * GMime's minor version.
36  **/
37 #define GMIME_MINOR_VERSION (@GMIME_MINOR_VERSION@)
38
39 /**
40  * GMIME_MICRO_VERSION:
41  *
42  * GMime's micro version.
43  **/
44 #define GMIME_MICRO_VERSION (@GMIME_MICRO_VERSION@)
45
46 /**
47  * GMIME_BINARY_AGE:
48  *
49  * GMime's binary age.
50  **/
51 #define GMIME_BINARY_AGE    (@GMIME_BINARY_AGE@)
52
53 /**
54  * GMIME_INTERFACE_AGE:
55  *
56  * GMime's interface age.
57  **/
58 #define GMIME_INTERFACE_AGE (@GMIME_INTERFACE_AGE@)
59
60
61 /**
62  * GMIME_CHECK_VERSION:
63  * @major: Minimum major version
64  * @minor: Minimum minor version
65  * @micro: Minimum micro version
66  *
67  * Check whether a GMime version equal to or greater than
68  * @major.@minor.@micro is present.
69  **/
70 #define GMIME_CHECK_VERSION(major,minor,micro)  \
71     (GMIME_MAJOR_VERSION > (major) || \
72      (GMIME_MAJOR_VERSION == (major) && GMIME_MINOR_VERSION > (minor)) || \
73      (GMIME_MAJOR_VERSION == (major) && GMIME_MINOR_VERSION == (minor) && \
74       GMIME_MICRO_VERSION >= (micro)))
75
76 #endif /* __GMIME_VERSION_H__ */