comparison libpurple/version.h.in @ 16584:dbea1f78b3c9

merge of '2bab1bb5c2cd857e5eef4e163c2f6cd309017e73' and '31465bb611a0eb0b85db0c194125b2e01f0cd6ab'
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 28 Apr 2007 16:57:00 +0000
parents ce049678a67b
children 41f85148a60f
comparison
equal deleted inserted replaced
16578:bb017d30aacd 16584:dbea1f78b3c9
1 /**
2 * @file version.h Purple Versioning
3 *
4 * purple
5 *
6 * Purple is the legal property of its developers, whose names are too numerous
7 * to list here. Please refer to the COPYRIGHT file distributed with this
8 * source distribution.
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 */
24 #ifndef _PURPLE_VERSION_H_
25 #define _PURPLE_VERSION_H_
26
27 #define PURPLE_MAJOR_VERSION (@PURPLE_MAJOR_VERSION@)
28 #define PURPLE_MINOR_VERSION (@PURPLE_MINOR_VERSION@)
29 #define PURPLE_MICRO_VERSION (@PURPLE_MICRO_VERSION@)
30
31 #define PURPLE_VERSION_CHECK(x,y,z) ((x) == PURPLE_MAJOR_VERSION && \
32 ((y) < PURPLE_MINOR_VERSION || \
33 ((y) == PURPLE_MINOR_VERSION && (z) <= PURPLE_MICRO_VERSION)))
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 const guint purple_major_version;
40 const guint purple_minor_version;
41 const guint purple_micro_version;
42
43 /**
44 * Checks that the libpurple version is compatible with the requested
45 * version
46 *
47 * @param required_major: the required major version.
48 * @param required_minor: the required minor version.
49 * @param required_micro: the required micro version.
50 *
51 * @return NULL if the versions are compatible, or a string describing
52 * the version mismatch if not compatible.
53 */
54 const char *purple_version_check(guint required_major, guint required_minor, guint required_micro);
55
56 #ifdef __cplusplus
57 }
58 #endif
59
60 #endif /* _PURPLE_VERSION_H_ */
61