libpurple/purpleversion.h

Tue, 09 Apr 2024 21:50:31 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 09 Apr 2024 21:50:31 -0500
changeset 42656
df9aafbae930
parent 42616
a7144db5570a
child 42969
4132f4d92fd7
permissions
-rw-r--r--

Add a doc-check unit test to libpurple and fix the issues it has found

Testing Done:
Ran ninja turtles

Reviewed at https://reviews.imfreedom.org/r/3050/

35429
a69e118387f8 Add section block for *.h.in
Ankit Vani <a@nevitus.org>
parents: 35397
diff changeset
1 /*
40584
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40474
diff changeset
2 * Purple - Internet Messaging Library
6f198a69ac48 A bunch of documentation cleanups
Gary Kramlich <grim@reaperworld.com>
parents: 40474
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
4 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
7 * source distribution.
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
8 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
9 * This library is free software; you can redistribute it and/or modify it
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
10 * under the terms of the GNU General Public License as published by the Free
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
11 * Software Foundation; either version 2 of the License, or (at your option)
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
12 * any later version.
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
13 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
14 * This library is distributed in the hope that it will be useful, but WITHOUT
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
17 * more details.
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
18 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
19 * You should have received a copy of the GNU General Public License along with
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42437
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
21 */
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35436
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40206
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40206
diff changeset
24 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40206
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40206
diff changeset
26
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39383
diff changeset
27 #ifndef PURPLE_VERSION_H
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39383
diff changeset
28 #define PURPLE_VERSION_H
40206
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
29
41682
289867067994 Clean up a bunch of stuff in internal.h
Gary Kramlich <grim@reaperworld.com>
parents: 41199
diff changeset
30 #include <glib.h>
289867067994 Clean up a bunch of stuff in internal.h
Gary Kramlich <grim@reaperworld.com>
parents: 41199
diff changeset
31
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
32 #include "purpleversionconsts.h"
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
33
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
34 #if (defined(_WIN32) || defined(__CYGWIN__)) && \
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
35 !defined(PURPLE_STATIC_COMPILATION)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
36 #define _PURPLE_EXPORT __declspec(dllexport)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
37 #define _PURPLE_IMPORT __declspec(dllimport)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
38 #elif __GNUC__ >= 4
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
39 #define _PURPLE_EXPORT __attribute__((visibility("default")))
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
40 #define _PURPLE_IMPORT
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
41 #else
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
42 #define _PURPLE_EXPORT
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
43 #define _PURPLE_IMPORT
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
44 #endif
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
45 #ifdef PURPLE_COMPILATION
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
46 #define _PURPLE_API _PURPLE_EXPORT
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
47 #else
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
48 #define _PURPLE_API _PURPLE_IMPORT
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
49 #endif
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
50
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
51 #define _PURPLE_EXTERN _PURPLE_API extern
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
52
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
53 #ifdef PURPLE_DISABLE_DEPRECATION_WARNINGS
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
54 #define PURPLE_DEPRECATED _PURPLE_EXTERN
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
55 #define PURPLE_DEPRECATED_FOR(f) _PURPLE_EXTERN
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
56 #define PURPLE_UNAVAILABLE(maj, min) _PURPLE_EXTERN
42599
4f19be7835c2 Define PURPLE_MACRO_UNAVAILABLE and PIDGIN_MACRO_UNAVAILABLE
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
57 #define PURPLE_UNAVAILABLE_MACRO(maj, min)
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
58 #define PURPLE_UNAVAILABLE_STATIC_INLINE(maj, min)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
59 #define PURPLE_UNAVAILABLE_TYPE(maj, min)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
60 #else
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
61 #define PURPLE_DEPRECATED G_DEPRECATED _PURPLE_EXTERN
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
62 #define PURPLE_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) _PURPLE_EXTERN
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
63 #define PURPLE_UNAVAILABLE(maj, min) G_UNAVAILABLE(maj, min) _PURPLE_EXTERN
42599
4f19be7835c2 Define PURPLE_MACRO_UNAVAILABLE and PIDGIN_MACRO_UNAVAILABLE
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
64 #define PURPLE_UNAVAILABLE_MACRO(maj, min) G_UNAVAILABLE_MACRO(maj, min)
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
65 #define PURPLE_UNAVAILABLE_STATIC_INLINE(maj, min) G_UNAVAILABLE(maj, min)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
66 #define PURPLE_UNAVAILABLE_TYPE(maj, min) G_UNAVAILABLE(maj, min)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
67 #endif
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
68
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
69 /**
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
70 * PURPLE_VERSION_CUR_STABLE:
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
71 *
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
72 * A macro that evaluates to the current stable version of libpurple, in a format
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
73 * that can be used by the C pre-processor.
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
74 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
75 * Since: 3.0
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
76 */
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
77 #define PURPLE_VERSION_CUR_STABLE \
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
78 (G_ENCODE_VERSION(PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION))
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
79
42656
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
80 /**
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
81 * PURPLE_VERSION_MIN_REQUIRED:
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
82 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
83 * A macro that should be defined by the user prior to including the `purple.h`
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
84 * header.
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
85 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
86 * The definition should be one of the predefined Purple version macros:
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
87 * %PURPLE_VERSION_3_0, %PURPLE_VERSION_3_1, ...
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
88 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
89 * This macro defines the earliest version of Purple that the package is
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
90 * required to be able to compile against.
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
91 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
92 * If the compiler is configured to warn about the use of deprecated functions,
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
93 * then using functions that were deprecated in version
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
94 * %PURPLE_VERSION_MIN_REQUIRED or earlier will cause warnings (but using
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
95 * functions deprecated in later releases will not).
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
96 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
97 * Since: 3.0
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
98 */
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42616
diff changeset
99
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
100 /* If the package sets PURPLE_VERSION_MIN_REQUIRED to some future
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
101 * PURPLE_VERSION_X_Y value that we don't know about, it will compare as 0 in
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
102 * preprocessor tests.
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
103 */
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
104 #ifndef PURPLE_VERSION_MIN_REQUIRED
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
105 #define PURPLE_VERSION_MIN_REQUIRED (PURPLE_VERSION_CUR_STABLE)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
106 #elif PURPLE_VERSION_MIN_REQUIRED == 0
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
107 #undef PURPLE_VERSION_MIN_REQUIRED
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
108 #define PURPLE_VERSION_MIN_REQUIRED (PURPLE_VERSION_CUR_STABLE + 1)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
109 #endif /* PURPLE_VERSION_MIN_REQUIRED */
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
110
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
111 #if !defined(PURPLE_VERSION_MAX_ALLOWED) || (PURPLE_VERSION_MAX_ALLOWED == 0)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
112 #undef PURPLE_VERSION_MAX_ALLOWED
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
113 #define PURPLE_VERSION_MAX_ALLOWED (PURPLE_VERSION_CUR_STABLE)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
114 #endif /* PURPLE_VERSION_MAX_ALLOWED */
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
115
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
116 /* sanity checks */
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
117 #if PURPLE_VERSION_MIN_REQUIRED > PURPLE_VERSION_CUR_STABLE
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
118 #error "PURPLE_VERSION_MIN_REQUIRED must be <= PURPLE_VERSION_CUR_STABLE"
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
119 #endif
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
120 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_MIN_REQUIRED
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
121 #error "PURPLE_VERSION_MAX_ALLOWED must be >= PURPLE_VERSION_MIN_REQUIRED"
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
122 #endif
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
123 #if PURPLE_VERSION_MIN_REQUIRED < G_ENCODE_VERSION(2, 0)
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
124 #error "PURPLE_VERSION_MIN_REQUIRED must be >= PURPLE_VERSION_2_0"
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
125 #endif
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
126
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
127 #define PURPLE_VAR _PURPLE_EXTERN
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
128 #define PURPLE_AVAILABLE_IN_ALL _PURPLE_EXTERN
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
129
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
130 /**
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
131 * PURPLE_VERSION_2_0:
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
132 *
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
133 * A macro that evaluates to the 2.0 version of libpurple, in a format that
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
134 * can be used by the C pre-processor.
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
135 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
136 * Since: 3.0
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
137 */
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
138 #define PURPLE_VERSION_2_0 (G_ENCODE_VERSION(2, 0))
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
139
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
140 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_0
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
141 #define PURPLE_AVAILABLE_IN_2_0 PURPLE_UNAVAILABLE(2, 0)
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
142 #else
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
143 #define PURPLE_AVAILABLE_IN_2_0 _PURPLE_EXTERN
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
144 #endif
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
145
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
146 /**
42399
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
147 * PURPLE_VERSION_2_1:
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
148 *
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
149 * A macro that evaluates to the 2.1 version of libpurple, in a format that
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
150 * can be used by the C pre-processor.
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
151 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
152 * Since: 3.0
42399
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
153 */
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
154 #define PURPLE_VERSION_2_1 (G_ENCODE_VERSION(2, 1))
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
155
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
156 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_1
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
157 #define PURPLE_AVAILABLE_IN_2_1 PURPLE_UNAVAILABLE(2, 1)
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
158 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_1 PURPLE_UNAVAILABLE_ENUMERATOR(2, 1)
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
159 #else
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
160 #define PURPLE_AVAILABLE_IN_2_1 _PURPLE_EXTERN
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
161 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_1
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
162 #endif
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
163
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
164 /**
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
165 * PURPLE_VERSION_2_2:
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
166 *
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
167 * A macro that evaluates to the 2.2 version of libpurple, in a format that
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
168 * can be used by the C pre-processor.
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
169 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
170 * Since: 3.0
42399
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
171 */
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
172 #define PURPLE_VERSION_2_2 (G_ENCODE_VERSION(2, 2))
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
173
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
174 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_2
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
175 #define PURPLE_AVAILABLE_IN_2_2 PURPLE_UNAVAILABLE(2, 2)
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
176 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_2 PURPLE_UNAVAILABLE_ENUMERATOR(2, 2)
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
177 #else
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
178 #define PURPLE_AVAILABLE_IN_2_2 _PURPLE_EXTERN
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
179 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_2
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
180 #endif
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
181
7598020f5ae2 Export symbols and add Since tags for 2.2/2.1 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42398
diff changeset
182 /**
42398
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
183 * PURPLE_VERSION_2_3:
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
184 *
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
185 * A macro that evaluates to the 2.3 version of libpurple, in a format that
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
186 * can be used by the C pre-processor.
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
187 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
188 * Since: 3.0
42398
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
189 */
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
190 #define PURPLE_VERSION_2_3 (G_ENCODE_VERSION(2, 3))
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
191
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
192 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_3
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
193 #define PURPLE_AVAILABLE_IN_2_3 PURPLE_UNAVAILABLE(2, 3)
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
194 #define PURPLE_AVAILABLE_TYPE_IN_2_3 PURPLE_UNAVAILABLE_TYPE(2, 3)
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
195 #else
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
196 #define PURPLE_AVAILABLE_IN_2_3 _PURPLE_EXTERN
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
197 #define PURPLE_AVAILABLE_TYPE_IN_2_3
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
198 #endif
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
199
00178e755de6 Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42397
diff changeset
200 /**
42397
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
201 * PURPLE_VERSION_2_4:
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
202 *
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
203 * A macro that evaluates to the 2.4 version of libpurple, in a format that
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
204 * can be used by the C pre-processor.
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
205 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
206 * Since: 3.0
42397
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
207 */
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
208 #define PURPLE_VERSION_2_4 (G_ENCODE_VERSION(2, 4))
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
209
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
210 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_4
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
211 #define PURPLE_AVAILABLE_IN_2_4 PURPLE_UNAVAILABLE(2, 4)
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
212 #else
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
213 #define PURPLE_AVAILABLE_IN_2_4 _PURPLE_EXTERN
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
214 #endif
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
215
dc6563055e80 Export symbols and add Since tags for 2.4 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42396
diff changeset
216 /**
42396
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
217 * PURPLE_VERSION_2_5:
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
218 *
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
219 * A macro that evaluates to the 2.5 version of libpurple, in a format that
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
220 * can be used by the C pre-processor.
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
221 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
222 * Since: 3.0
42396
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
223 */
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
224 #define PURPLE_VERSION_2_5 (G_ENCODE_VERSION(2, 5))
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
225
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
226 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_5
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
227 #define PURPLE_AVAILABLE_IN_2_5 PURPLE_UNAVAILABLE(2, 5)
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
228 #else
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
229 #define PURPLE_AVAILABLE_IN_2_5 _PURPLE_EXTERN
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
230 #endif
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
231
31bf5a42ac84 Export symbols and add Since tags for 2.5 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42394
diff changeset
232 /**
42394
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
233 * PURPLE_VERSION_2_6:
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
234 *
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
235 * A macro that evaluates to the 2.6 version of libpurple, in a format that
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
236 * can be used by the C pre-processor.
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
237 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
238 * Since: 3.0
42394
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
239 */
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
240 #define PURPLE_VERSION_2_6 (G_ENCODE_VERSION(2, 6))
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
241
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
242 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_6
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
243 #define PURPLE_AVAILABLE_IN_2_6 PURPLE_UNAVAILABLE(2, 6)
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
244 #define PURPLE_AVAILABLE_STATIC_INLINE_IN_2_6 PURPLE_UNAVAILABLE_STATIC_INLINE(2, 6)
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
245 #define PURPLE_AVAILABLE_TYPE_IN_2_6 PURPLE_UNAVAILABLE_TYPE(2, 6)
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
246 #else
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
247 #define PURPLE_AVAILABLE_IN_2_6 _PURPLE_EXTERN
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
248 #define PURPLE_AVAILABLE_STATIC_INLINE_IN_2_6
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
249 #define PURPLE_AVAILABLE_TYPE_IN_2_6
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
250 #endif
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
251
b3bc5ad00646 Export symbols and add Since tags for 2.6 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42393
diff changeset
252 /**
42393
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
253 * PURPLE_VERSION_2_7:
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
254 *
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
255 * A macro that evaluates to the 2.7 version of libpurple, in a format that
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
256 * can be used by the C pre-processor.
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
257 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
258 * Since: 3.0
42393
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
259 */
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
260 #define PURPLE_VERSION_2_7 (G_ENCODE_VERSION(2, 7))
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
261
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
262 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_7
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
263 #define PURPLE_AVAILABLE_IN_2_7 PURPLE_UNAVAILABLE(2, 7)
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
264 #else
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
265 #define PURPLE_AVAILABLE_IN_2_7 _PURPLE_EXTERN
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
266 #endif
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
267
408884ab47a9 Export symbols and add Since tags for 2.7 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42392
diff changeset
268 /**
42392
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
269 * PURPLE_VERSION_2_8:
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
270 *
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
271 * A macro that evaluates to the 2.8 version of libpurple, in a format that
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
272 * can be used by the C pre-processor.
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
273 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
274 * Since: 3.0
42392
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
275 */
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
276 #define PURPLE_VERSION_2_8 (G_ENCODE_VERSION(2, 8))
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
277
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
278 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_8
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
279 #define PURPLE_AVAILABLE_IN_2_8 PURPLE_UNAVAILABLE(2, 8)
42400
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
280 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_8 PURPLE_UNAVAILABLE_ENUMERATOR(2, 8)
42392
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
281 #else
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
282 #define PURPLE_AVAILABLE_IN_2_8 _PURPLE_EXTERN
42400
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
283 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_8
42392
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
284 #endif
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
285
bc5e361de7ff Export symbols and add Since tags for 2.8 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42388
diff changeset
286 /**
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
287 * PURPLE_VERSION_2_9:
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
288 *
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
289 * A macro that evaluates to the 2.9 version of libpurple, in a format that
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
290 * can be used by the C pre-processor.
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
291 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
292 * Since: 3.0
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
293 */
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
294 #define PURPLE_VERSION_2_9 (G_ENCODE_VERSION(2, 9))
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
295
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
296 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_9
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
297 #define PURPLE_AVAILABLE_IN_2_9 PURPLE_UNAVAILABLE(2, 9)
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
298 #else
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
299 #define PURPLE_AVAILABLE_IN_2_9 _PURPLE_EXTERN
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
300 #endif
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
301
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
302 /**
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
303 * PURPLE_VERSION_2_10:
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
304 *
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
305 * A macro that evaluates to the 2.10 version of libpurple, in a format that
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
306 * can be used by the C pre-processor.
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
307 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
308 * Since: 3.0
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
309 */
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
310 #define PURPLE_VERSION_2_10 (G_ENCODE_VERSION(2, 10))
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
311
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
312 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_10
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
313 #define PURPLE_AVAILABLE_IN_2_10 PURPLE_UNAVAILABLE(2, 10)
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
314 #else
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
315 #define PURPLE_AVAILABLE_IN_2_10 _PURPLE_EXTERN
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
316 #endif
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
317
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
318 /**
42388
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
319 * PURPLE_VERSION_2_11:
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
320 *
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
321 * A macro that evaluates to the 2.11 version of libpurple, in a format that
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
322 * can be used by the C pre-processor.
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
323 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
324 * Since: 3.0
42388
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
325 */
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
326 #define PURPLE_VERSION_2_11 (G_ENCODE_VERSION(2, 11))
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
327
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
328 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_11
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
329 #define PURPLE_AVAILABLE_IN_2_11 PURPLE_UNAVAILABLE(2, 11)
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
330 #else
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
331 #define PURPLE_AVAILABLE_IN_2_11 _PURPLE_EXTERN
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
332 #endif
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
333
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
334 /**
42400
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
335 * PURPLE_VERSION_2_12:
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
336 *
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
337 * A macro that evaluates to the 2.12 version of libpurple, in a format that
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
338 * can be used by the C pre-processor.
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
339 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
340 * Since: 3.0
42400
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
341 */
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
342 #define PURPLE_VERSION_2_12 (G_ENCODE_VERSION(2, 12))
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
343
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
344 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_12
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
345 #define PURPLE_AVAILABLE_IN_2_12 PURPLE_UNAVAILABLE(2, 12)
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
346 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_12 PURPLE_UNAVAILABLE_ENUMERATOR(2, 12)
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
347 #else
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
348 #define PURPLE_AVAILABLE_IN_2_12 _PURPLE_EXTERN
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
349 #define PURPLE_AVAILABLE_ENUMERATOR_IN_2_12
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
350 #endif
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
351
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
352 /**
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
353 * PURPLE_VERSION_2_13:
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
354 *
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
355 * A macro that evaluates to the 2.13 version of libpurple, in a format that
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
356 * can be used by the C pre-processor.
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
357 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
358 * Since: 3.0
42437
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
359 */
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
360 #define PURPLE_VERSION_2_13 (G_ENCODE_VERSION(2, 13))
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
361
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
362 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_13
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
363 #define PURPLE_AVAILABLE_IN_2_13 PURPLE_UNAVAILABLE(2, 13)
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
364 #else
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
365 #define PURPLE_AVAILABLE_IN_2_13 _PURPLE_EXTERN
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
366 #endif
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
367
e3886c8b95fe Set minimum allowed API to 2.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42400
diff changeset
368 /**
42388
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
369 * PURPLE_VERSION_2_14:
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
370 *
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
371 * A macro that evaluates to the 2.14 version of libpurple, in a format that
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
372 * can be used by the C pre-processor.
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
373 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
374 * Since: 3.0
42388
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
375 */
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
376 #define PURPLE_VERSION_2_14 (G_ENCODE_VERSION(2, 14))
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
377
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
378 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_2_14
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
379 #define PURPLE_AVAILABLE_IN_2_14 PURPLE_UNAVAILABLE(2, 14)
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
380 #else
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
381 #define PURPLE_AVAILABLE_IN_2_14 _PURPLE_EXTERN
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
382 #endif
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
383
e0f4a672f85d Add symbol visibility for symbols tagged with Since: 2.x
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
384 /**
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
385 * PURPLE_VERSION_3_0:
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
386 *
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
387 * A macro that evaluates to the 3.0 version of libpurple, in a format that can
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
388 * be used by the C pre-processor.
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
389 *
42616
a7144db5570a Remove the micro version from since tags for libpurple part 5
Gary Kramlich <grim@reaperworld.com>
parents: 42599
diff changeset
390 * Since: 3.0
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
391 */
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
392 #define PURPLE_VERSION_3_0 (G_ENCODE_VERSION(3, 0))
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
393
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
394 #if PURPLE_VERSION_MAX_ALLOWED < PURPLE_VERSION_3_0
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
395 #define PURPLE_AVAILABLE_IN_3_0 PURPLE_UNAVAILABLE(3, 0)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
396 #define PURPLE_AVAILABLE_STATIC_INLINE_IN_3_0 PURPLE_UNAVAILABLE_STATIC_INLINE(3, 0)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
397 #define PURPLE_AVAILABLE_MACRO_IN_3_0 PURPLE_UNAVAILABLE_MACRO(3, 0)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
398 #define PURPLE_AVAILABLE_ENUMERATOR_IN_3_0 PURPLE_UNAVAILABLE_ENUMERATOR(3, 0)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
399 #define PURPLE_AVAILABLE_TYPE_IN_3_0 PURPLE_UNAVAILABLE_TYPE(3, 0)
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
400 #else
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
401 #define PURPLE_AVAILABLE_IN_3_0 _PURPLE_EXTERN
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
402 #define PURPLE_AVAILABLE_STATIC_INLINE_IN_3_0
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
403 #define PURPLE_AVAILABLE_MACRO_IN_3_0
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
404 #define PURPLE_AVAILABLE_ENUMERATOR_IN_3_0
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
405 #define PURPLE_AVAILABLE_TYPE_IN_3_0
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
406 #endif
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42376
diff changeset
407
35429
a69e118387f8 Add section block for *.h.in
Ankit Vani <a@nevitus.org>
parents: 35397
diff changeset
408 /**
40206
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
409 * PURPLE_VERSION_CHECK:
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
410 * @major: The major version to check for.
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
411 * @minor: The minor version to check for.
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
412 * @micro: The micro version to check for.
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
413 *
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
414 * Checks the version of libpurple being compiled against. See
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
415 * #purple_version_check for a runtime check.
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
416 *
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
417 * Returns: %TRUE if the version of libpurple is the same or newer than the
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
418 * passed-in version.
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
419 */
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
420 #define PURPLE_VERSION_CHECK(major, minor, micro) ((major) == PURPLE_MAJOR_VERSION && \
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
421 ((minor) < PURPLE_MINOR_VERSION || \
566c210f7003 Add PURPLE_VERSION and PURPLE_EXTRA_VERSION to libpurple/version.h and clean up some other related stuff
Gary Kramlich <grim@reaperworld.com>
parents: 39659
diff changeset
422 ((minor) == PURPLE_MINOR_VERSION && (micro) <= PURPLE_MICRO_VERSION)))
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
423
39383
0f9d49617abc Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents: 37094
diff changeset
424 G_BEGIN_DECLS
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
425
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15884
diff changeset
426 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
427 * purple_version_check:
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
428 * @required_major: the required major version.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
429 * @required_minor: the required minor version.
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 32438
diff changeset
430 * @required_micro: the required micro version.
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15884
diff changeset
431 *
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
432 * Checks that the libpurple version is compatible with the requested
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
433 * version
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
434 *
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
435 * Returns: %NULL if the versions are compatible, or a string describing
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
436 * the version mismatch if not compatible.
16651
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15884
diff changeset
437 */
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15884
diff changeset
438 const char *purple_version_check(guint required_major, guint required_minor, guint required_micro);
218fe51ae7b7 soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 15884
diff changeset
439
22039
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
440 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
441 * purple_major_version:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
442 *
22039
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
443 * The major version of the running libpurple. Contrast with
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
444 * #PURPLE_MAJOR_VERSION, which expands at compile time to the major version of
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
445 * libpurple being compiled against.
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
446 */
42400
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
447 PURPLE_VAR const guint purple_major_version;
22039
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
448
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
449 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
450 * purple_minor_version:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
451 *
22039
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
452 * The minor version of the running libpurple. Contrast with
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
453 * #PURPLE_MINOR_VERSION, which expands at compile time to the minor version of
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
454 * libpurple being compiled against.
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
455 */
42400
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
456 PURPLE_VAR const guint purple_minor_version;
22039
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
457
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
458 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
459 * purple_micro_version:
22039
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
460 *
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
461 * The micro version of the running libpurple. Contrast with
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
462 * #PURPLE_MICRO_VERSION, which expands at compile time to the micro version of
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
463 * libpurple being compiled against.
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
464 */
42400
64c85dc25cd4 Tag some miscellanous Since and exports
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42399
diff changeset
465 PURPLE_VAR const guint purple_micro_version;
22039
f2aa47f387a6 Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents: 22030
diff changeset
466
39383
0f9d49617abc Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents: 37094
diff changeset
467 G_END_DECLS
9943
b54a762f60fa [gaim-migrate @ 10835]
Nathan Walp <nwalp@pidgin.im>
parents:
diff changeset
468
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39383
diff changeset
469 #endif /* PURPLE_VERSION_H */

mercurial