Wed, 02 Apr 2014 02:37:34 +0200
Custom smileys: simplify storage implementation
| 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 | |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
23 | #ifndef _PURPLE_VERSION_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35436
diff
changeset
|
24 | #define _PURPLE_VERSION_H_ |
| 35429 | 25 | /** |
| 26 | * SECTION:version | |
| 27 | * @section_id: libpurple-version | |
|
35436
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35429
diff
changeset
|
28 | * @short_description: <filename>version.h</filename> |
|
a69d2e5604c5
Swap @title and @short_description roles
Ankit Vani <a@nevitus.org>
parents:
35429
diff
changeset
|
29 | * @title: Purple Versioning |
| 35429 | 30 | */ |
| 31 | ||
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
32 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
33 | * PURPLE_MAJOR_VERSION: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
34 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
35 | * 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
|
36 | */ |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
37 | #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
|
38 | |
|
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 | * PURPLE_MINOR_VERSION: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
41 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | * 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
|
43 | */ |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
44 | #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
|
45 | |
|
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 | * PURPLE_MICRO_VERSION: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | * 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
|
50 | */ |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
51 | #define PURPLE_MICRO_VERSION (@PURPLE_MICRO_VERSION@) |
| 9943 | 52 | |
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
53 | #define PURPLE_VERSION_CHECK(x,y,z) ((x) == PURPLE_MAJOR_VERSION && \ |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
54 | ((y) < PURPLE_MINOR_VERSION || \ |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
55 | ((y) == PURPLE_MINOR_VERSION && (z) <= PURPLE_MICRO_VERSION))) |
| 9943 | 56 | |
| 57 | #ifdef __cplusplus | |
| 58 | extern "C" { | |
| 59 | #endif | |
| 60 | ||
|
16651
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
61 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
62 | * purple_version_check: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
63 | * @required_major: the required major version. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
64 | * @required_minor: the required minor version. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
65 | * @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
|
66 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
67 | * 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
|
68 | * version |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
69 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
70 | * 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
|
71 | * 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
|
72 | */ |
|
218fe51ae7b7
soname versioning of libpurple. Should help resolve debian bug 421282
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
15884
diff
changeset
|
73 | 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
|
74 | |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
75 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
76 | * purple_major_version: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
77 | * |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
78 | * 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
|
79 | * #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
|
80 | * libpurple being compiled against. |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
81 | */ |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
82 | extern const guint purple_major_version; |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
83 | |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
84 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
85 | * purple_minor_version: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
86 | * |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
87 | * 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
|
88 | * #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
|
89 | * libpurple being compiled against. |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
90 | */ |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
91 | extern const guint purple_minor_version; |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
92 | |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
93 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
94 | * purple_micro_version: |
|
22039
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
95 | * |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
96 | * 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
|
97 | * #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
|
98 | * libpurple being compiled against. |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
99 | */ |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
100 | extern const guint purple_micro_version; |
|
f2aa47f387a6
Export purple_*_version in version.h.
Will Thompson <resiak@pidgin.im>
parents:
22030
diff
changeset
|
101 | |
| 9943 | 102 | #ifdef __cplusplus |
| 103 | } | |
| 104 | #endif | |
| 105 | ||
| 15884 | 106 | #endif /* _PURPLE_VERSION_H_ */ |
| 9943 | 107 |