Tue, 07 Apr 2020 02:27:08 -0500
Move the mood api to it's own files and remove the remaining bits of the old menu bar from gtkblist
| 35429 | 1 | /* |
| 15884 | 2 | * purple |
| 9943 | 3 | * |
| 15884 | 4 | * Purple is the legal property of its developers, whose names are too numerous |
| 9943 | 5 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 6 | * source distribution. | |
| 7 | * | |
| 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. | |
| 12 | * | |
| 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. | |
| 17 | * | |
| 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 | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16872
diff
changeset
|
20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 9943 | 21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
22 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39383
diff
changeset
|
23 | #ifndef PURPLE_VERSION_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39383
diff
changeset
|
24 | #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
|
25 | |
| 35429 | 26 | /** |
| 27 | * SECTION:version | |
| 28 | * @section_id: libpurple-version | |
|
35436
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35429
diff
changeset
|
29 | * @short_description: <filename>version.h</filename> |
|
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35429
diff
changeset
|
30 | * @title: Purple Versioning |
| 35429 | 31 | */ |
| 32 | ||
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
33 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
34 | * PURPLE_MAJOR_VERSION: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
35 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
36 | * The major version of the running libpurple. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
37 | */ |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
38 | #define PURPLE_MAJOR_VERSION (@PURPLE_MAJOR_VERSION@) |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
39 | |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
40 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
41 | * PURPLE_MINOR_VERSION: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
43 | * The minor version of the running libpurple. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
44 | */ |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
45 | #define PURPLE_MINOR_VERSION (@PURPLE_MINOR_VERSION@) |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
46 | |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
47 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | * PURPLE_MICRO_VERSION: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
50 | * The micro version of the running libpurple. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
51 | */ |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
52 | #define PURPLE_MICRO_VERSION (@PURPLE_MICRO_VERSION@) |
| 9943 | 53 | |
|
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
|
54 | /** |
|
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
|
55 | * PURPLE_EXTRA_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
|
56 | * |
|
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
|
57 | * The "extra" part of the version number if anything. Typical values are |
|
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
|
58 | * "devel", "beta1", "rc2", etc. |
|
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
|
59 | */ |
|
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
|
60 | #define PURPLE_EXTRA_VERSION ("@PURPLE_EXTRA_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
|
61 | |
|
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
|
62 | /** |
|
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
|
63 | * PURPLE_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
|
64 | * |
|
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
|
65 | * The entire version as a string. |
|
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
|
66 | */ |
|
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
|
67 | #define PURPLE_VERSION ("@PURPLE_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
|
68 | |
|
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
|
69 | /** |
|
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
|
70 | * 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
|
71 | * @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
|
72 | * @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
|
73 | * @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
|
74 | * |
|
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
|
75 | * 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
|
76 | * #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
|
77 | * |
|
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
|
78 | * 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
|
79 | * 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
|
80 | */ |
|
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
|
81 | #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
|
82 | ((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
|
83 | ((minor) == PURPLE_MINOR_VERSION && (micro) <= PURPLE_MICRO_VERSION))) |
| 9943 | 84 | |
|
39383
0f9d49617abc
Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents:
37094
diff
changeset
|
85 | G_BEGIN_DECLS |
| 9943 | 86 | |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
87 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
88 | * purple_version_check: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
89 | * @required_major: the required major version. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
90 | * @required_minor: the required minor version. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
91 | * @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
|
92 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
93 | * 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
|
94 | * version |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
95 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
96 | * 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
|
97 | * 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
|
98 | */ |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
99 | 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
|
100 | |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
101 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * purple_major_version: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
103 | * |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
104 | * 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
|
105 | * #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
|
106 | * libpurple being compiled against. |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
107 | */ |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
108 | extern const guint purple_major_version; |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
109 | |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
110 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
111 | * purple_minor_version: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
112 | * |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
113 | * 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
|
114 | * #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
|
115 | * libpurple being compiled against. |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
116 | */ |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
117 | extern const guint purple_minor_version; |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
118 | |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
119 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
120 | * purple_micro_version: |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
121 | * |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
122 | * 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
|
123 | * #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
|
124 | * libpurple being compiled against. |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
125 | */ |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
126 | extern const guint purple_micro_version; |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
127 | |
|
39383
0f9d49617abc
Use G_BEGIN_DECLS and G_END_DECLS instead of raw extern "C"
Mike Ruprecht <cmaiku@gmail.com>
parents:
37094
diff
changeset
|
128 | G_END_DECLS |
| 9943 | 129 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39383
diff
changeset
|
130 | #endif /* PURPLE_VERSION_H */ |