Fix some functions descriptions
[pidgin-git.git] / libpurple / version.h.in
blob602a47dc80626c8ae0e7977f67179d02b520f69a
1 /*
2 * purple
4 * Purple is the legal property of its developers, whose names are too numerous
5 * to list here. Please refer to the COPYRIGHT file distributed with this
6 * source distribution.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
23 #ifndef _PURPLE_VERSION_H_
24 #define _PURPLE_VERSION_H_
25 /**
26 * SECTION:version
27 * @section_id: libpurple-version
28 * @short_description: <filename>version.h</filename>
29 * @title: Purple Versioning
32 /**
33 * PURPLE_MAJOR_VERSION:
35 * The major version of the running libpurple.
37 #define PURPLE_MAJOR_VERSION (@PURPLE_MAJOR_VERSION@)
39 /**
40 * PURPLE_MINOR_VERSION:
42 * The minor version of the running libpurple.
44 #define PURPLE_MINOR_VERSION (@PURPLE_MINOR_VERSION@)
46 /**
47 * PURPLE_MICRO_VERSION:
49 * The micro version of the running libpurple.
51 #define PURPLE_MICRO_VERSION (@PURPLE_MICRO_VERSION@)
53 #define PURPLE_VERSION_CHECK(x,y,z) ((x) == PURPLE_MAJOR_VERSION && \
54 ((y) < PURPLE_MINOR_VERSION || \
55 ((y) == PURPLE_MINOR_VERSION && (z) <= PURPLE_MICRO_VERSION)))
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
61 /**
62 * purple_version_check:
63 * @required_major: the required major version.
64 * @required_minor: the required minor version.
65 * @required_micro: the required micro version.
67 * Checks that the libpurple version is compatible with the requested
68 * version
70 * Returns: %NULL if the versions are compatible, or a string describing
71 * the version mismatch if not compatible.
73 const char *purple_version_check(guint required_major, guint required_minor, guint required_micro);
75 /**
76 * purple_major_version:
78 * The major version of the running libpurple. Contrast with
79 * #PURPLE_MAJOR_VERSION, which expands at compile time to the major version of
80 * libpurple being compiled against.
82 extern const guint purple_major_version;
84 /**
85 * purple_minor_version:
87 * The minor version of the running libpurple. Contrast with
88 * #PURPLE_MINOR_VERSION, which expands at compile time to the minor version of
89 * libpurple being compiled against.
91 extern const guint purple_minor_version;
93 /**
94 * purple_micro_version:
96 * The micro version of the running libpurple. Contrast with
97 * #PURPLE_MICRO_VERSION, which expands at compile time to the micro version of
98 * libpurple being compiled against.
100 extern const guint purple_micro_version;
102 #ifdef __cplusplus
104 #endif
106 #endif /* _PURPLE_VERSION_H_ */