Wed, 13 May 2009 20:29:03 +0000
Support custom smileys in MUCs (when all participants support BoB and a maximum
of 10 participants are in the chat).
Always announce support for BoB, since disable custom smileys will still turn
off fetching them, and BoB can be used for other purposes further on.
| 5441 | 1 | /** |
| 2 | * @file prefs.h Prefs API | |
|
10066
606927534c36
[gaim-migrate @ 11041]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
3 | * @ingroup core |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
4 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | /* purple |
| 5441 | 7 | * |
| 15884 | 8 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 9 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 10 | * source distribution. | |
| 5441 | 11 | * |
| 12 | * This program is free software; you can redistribute it and/or modify | |
| 13 | * it under the terms of the GNU General Public License as published by | |
| 14 | * the Free Software Foundation; either version 2 of the License, or | |
| 15 | * (at your option) any later version. | |
| 16 | * | |
| 17 | * This program is distributed in the hope that it will be useful, | |
| 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 20 | * GNU General Public License for more details. | |
| 21 | * | |
| 22 | * You should have received a copy of the GNU General Public License | |
| 23 | * 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:
18814
diff
changeset
|
24 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 5441 | 25 | * |
| 26 | */ | |
| 15884 | 27 | #ifndef _PURPLE_PREFS_H_ |
| 28 | #define _PURPLE_PREFS_H_ | |
| 5441 | 29 | |
|
5638
53e752c88ea1
[gaim-migrate @ 6047]
Christian Hammond <chipx86@chipx86.com>
parents:
5561
diff
changeset
|
30 | #include <glib.h> |
|
53e752c88ea1
[gaim-migrate @ 6047]
Christian Hammond <chipx86@chipx86.com>
parents:
5561
diff
changeset
|
31 | |
| 5441 | 32 | /** |
|
25631
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
33 | * Preference data types. |
| 5441 | 34 | */ |
| 15884 | 35 | typedef enum _PurplePrefType |
| 5441 | 36 | { |
|
25631
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
37 | PURPLE_PREF_NONE, /**< No type. */ |
|
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
38 | PURPLE_PREF_BOOLEAN, /**< Boolean. */ |
|
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
39 | PURPLE_PREF_INT, /**< Integer. */ |
|
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
40 | PURPLE_PREF_STRING, /**< String. */ |
|
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
41 | PURPLE_PREF_STRING_LIST, /**< List of strings. */ |
|
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
42 | PURPLE_PREF_PATH, /**< Path. */ |
|
2506d2a66c9f
Document the PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION, and
Etan Reisner <deryni@pidgin.im>
parents:
23129
diff
changeset
|
43 | PURPLE_PREF_PATH_LIST /**< List of paths. */ |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
44 | |
| 15884 | 45 | } PurplePrefType; |
| 5441 | 46 | |
| 47 | /** | |
|
21427
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
48 | * The type of callbacks for preference changes. |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
49 | * |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
50 | * @param name the name of the preference which has changed. |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
51 | * @param type the type of the preferenced named @a name |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
52 | * @param val the new value of the preferencs; should be cast to the correct |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
53 | * type. For instance, to recover the value of a #PURPLE_PREF_INT |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
54 | * preference, use <tt>GPOINTER_TO_INT(val)</tt>. Alternatively, |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
55 | * just call purple_prefs_get_int(), purple_prefs_get_string_list() |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
56 | * etc. |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
57 | * @param data Arbitrary data specified when the callback was connected with |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
58 | * purple_prefs_connect_callback(). |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
59 | * |
|
fad701d9ba43
Document PurplePrefCallback.
Will Thompson <resiak@pidgin.im>
parents:
21054
diff
changeset
|
60 | * @see purple_prefs_connect_callback() |
| 5441 | 61 | */ |
| 15884 | 62 | typedef void (*PurplePrefCallback) (const char *name, PurplePrefType type, |
|
12816
5f93e09fa9a6
[gaim-migrate @ 15164]
Mark Doliner <markdoliner@pidgin.im>
parents:
12712
diff
changeset
|
63 | gconstpointer val, gpointer data); |
| 5441 | 64 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
65 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
66 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
67 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
68 | |
| 5441 | 69 | /**************************************************************************/ |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23129
diff
changeset
|
70 | /** @name Prefs API |
|
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23129
diff
changeset
|
71 | Preferences are named according to a directory-like structure. |
|
17436
a3e9be0f17ef
- Added a description of preference grouping to the Prefs API code
William Ehlhardt <williamehlhardt@gmail.com>
parents:
15884
diff
changeset
|
72 | Example: "/plugins/core/potato/is_from_idaho" (probably a boolean) */ |
| 5441 | 73 | /**************************************************************************/ |
| 74 | /*@{*/ | |
| 75 | ||
| 76 | /** | |
|
10443
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
77 | * Returns the prefs subsystem handle. |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
78 | * |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
79 | * @return The prefs subsystem handle. |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
80 | */ |
| 15884 | 81 | void *purple_prefs_get_handle(void); |
|
10443
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
82 | |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
83 | /** |
| 5441 | 84 | * Initialize core prefs |
| 85 | */ | |
| 15884 | 86 | void purple_prefs_init(void); |
| 5441 | 87 | |
| 88 | /** | |
| 8235 | 89 | * Uninitializes the prefs subsystem. |
| 90 | */ | |
| 15884 | 91 | void purple_prefs_uninit(void); |
| 8235 | 92 | |
| 93 | /** | |
| 5441 | 94 | * Add a new typeless pref. |
| 95 | * | |
| 96 | * @param name The name of the pref | |
| 97 | */ | |
| 15884 | 98 | void purple_prefs_add_none(const char *name); |
| 5441 | 99 | |
| 100 | /** | |
| 101 | * Add a new boolean pref. | |
| 102 | * | |
| 103 | * @param name The name of the pref | |
| 104 | * @param value The initial value to set | |
| 105 | */ | |
| 15884 | 106 | void purple_prefs_add_bool(const char *name, gboolean value); |
| 5441 | 107 | |
| 108 | /** | |
| 109 | * Add a new integer pref. | |
| 110 | * | |
| 111 | * @param name The name of the pref | |
| 112 | * @param value The initial value to set | |
| 113 | */ | |
| 15884 | 114 | void purple_prefs_add_int(const char *name, int value); |
| 5441 | 115 | |
| 116 | /** | |
| 117 | * Add a new string pref. | |
| 118 | * | |
| 119 | * @param name The name of the pref | |
| 120 | * @param value The initial value to set | |
| 121 | */ | |
| 15884 | 122 | void purple_prefs_add_string(const char *name, const char *value); |
| 5441 | 123 | |
| 124 | /** | |
| 5561 | 125 | * Add a new string list pref. |
| 126 | * | |
| 127 | * @param name The name of the pref | |
| 128 | * @param value The initial value to set | |
|
21054
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
129 | * @note This function takes a copy of the strings in the value list. The list |
|
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
130 | * itself and original copies of the strings are up to the caller to |
|
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
131 | * free. |
| 5561 | 132 | */ |
| 15884 | 133 | void purple_prefs_add_string_list(const char *name, GList *value); |
| 5561 | 134 | |
| 135 | /** | |
| 15370 | 136 | * Add a new path pref. |
| 137 | * | |
| 138 | * @param name The name of the pref | |
| 139 | * @param value The initial value to set | |
| 140 | */ | |
| 15884 | 141 | void purple_prefs_add_path(const char *name, const char *value); |
| 15370 | 142 | |
| 143 | /** | |
| 144 | * Add a new path list pref. | |
| 145 | * | |
| 146 | * @param name The name of the pref | |
| 147 | * @param value The initial value to set | |
|
21054
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
148 | * @note This function takes a copy of the strings in the value list. The list |
|
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
149 | * itself and original copies of the strings are up to the caller to |
|
6a5d95fe1c8a
Add notes about how the value argument to the
Etan Reisner <deryni@pidgin.im>
parents:
20940
diff
changeset
|
150 | * free. |
| 15370 | 151 | */ |
| 15884 | 152 | void purple_prefs_add_path_list(const char *name, GList *value); |
| 15370 | 153 | |
| 154 | ||
| 155 | /** | |
| 5441 | 156 | * Remove a pref. |
| 157 | * | |
| 158 | * @param name The name of the pref | |
| 159 | */ | |
| 15884 | 160 | void purple_prefs_remove(const char *name); |
| 5441 | 161 | |
| 162 | /** | |
| 6693 | 163 | * Rename a pref |
| 164 | * | |
| 165 | * @param oldname The old name of the pref | |
| 166 | * @param newname The new name for the pref | |
| 167 | */ | |
| 15884 | 168 | void purple_prefs_rename(const char *oldname, const char *newname); |
| 6693 | 169 | |
| 170 | /** | |
| 8705 | 171 | * Rename a boolean pref, toggling it's value |
| 172 | * | |
| 173 | * @param oldname The old name of the pref | |
| 174 | * @param newname The new name for the pref | |
| 175 | */ | |
| 15884 | 176 | void purple_prefs_rename_boolean_toggle(const char *oldname, const char *newname); |
| 8705 | 177 | |
| 178 | /** | |
| 5441 | 179 | * Remove all prefs. |
| 180 | */ | |
| 15884 | 181 | void purple_prefs_destroy(void); |
| 5441 | 182 | |
| 183 | /** | |
| 184 | * Set raw pref value | |
| 185 | * | |
| 186 | * @param name The name of the pref | |
| 187 | * @param value The value to set | |
| 188 | */ | |
| 15884 | 189 | void purple_prefs_set_generic(const char *name, gpointer value); |
| 5441 | 190 | |
| 191 | /** | |
| 192 | * Set boolean pref value | |
| 193 | * | |
| 194 | * @param name The name of the pref | |
| 195 | * @param value The value to set | |
| 196 | */ | |
| 15884 | 197 | void purple_prefs_set_bool(const char *name, gboolean value); |
| 5441 | 198 | |
| 199 | /** | |
| 200 | * Set integer pref value | |
| 201 | * | |
| 202 | * @param name The name of the pref | |
| 203 | * @param value The value to set | |
| 204 | */ | |
| 15884 | 205 | void purple_prefs_set_int(const char *name, int value); |
| 5441 | 206 | |
| 207 | /** | |
| 208 | * Set string pref value | |
| 209 | * | |
| 210 | * @param name The name of the pref | |
| 211 | * @param value The value to set | |
| 212 | */ | |
| 15884 | 213 | void purple_prefs_set_string(const char *name, const char *value); |
| 5441 | 214 | |
| 215 | /** | |
| 15370 | 216 | * Set string list pref value |
| 5561 | 217 | * |
| 218 | * @param name The name of the pref | |
| 219 | * @param value The value to set | |
| 220 | */ | |
| 15884 | 221 | void purple_prefs_set_string_list(const char *name, GList *value); |
| 5561 | 222 | |
| 223 | /** | |
| 15370 | 224 | * Set path pref value |
| 225 | * | |
| 226 | * @param name The name of the pref | |
| 227 | * @param value The value to set | |
| 228 | */ | |
| 15884 | 229 | void purple_prefs_set_path(const char *name, const char *value); |
| 15370 | 230 | |
| 231 | /** | |
| 232 | * Set path list pref value | |
| 233 | * | |
| 234 | * @param name The name of the pref | |
| 235 | * @param value The value to set | |
| 236 | */ | |
| 15884 | 237 | void purple_prefs_set_path_list(const char *name, GList *value); |
| 15370 | 238 | |
| 239 | ||
| 240 | /** | |
| 9611 | 241 | * Check if a pref exists |
| 242 | * | |
|
9619
2d8adb92f665
[gaim-migrate @ 10463]
Mark Doliner <markdoliner@pidgin.im>
parents:
9611
diff
changeset
|
243 | * @param name The name of the pref |
|
2d8adb92f665
[gaim-migrate @ 10463]
Mark Doliner <markdoliner@pidgin.im>
parents:
9611
diff
changeset
|
244 | * @return TRUE if the pref exists. Otherwise FALSE. |
| 9611 | 245 | */ |
| 15884 | 246 | gboolean purple_prefs_exists(const char *name); |
| 9611 | 247 | |
| 248 | /** | |
| 6538 | 249 | * Get pref type |
| 250 | * | |
| 251 | * @param name The name of the pref | |
| 252 | * @return The type of the pref | |
| 253 | */ | |
| 15884 | 254 | PurplePrefType purple_prefs_get_type(const char *name); |
| 6538 | 255 | |
| 256 | /** | |
| 5441 | 257 | * Get boolean pref value |
| 258 | * | |
| 259 | * @param name The name of the pref | |
| 260 | * @return The value of the pref | |
| 261 | */ | |
| 15884 | 262 | gboolean purple_prefs_get_bool(const char *name); |
| 5441 | 263 | |
| 264 | /** | |
| 265 | * Get integer pref value | |
| 266 | * | |
| 267 | * @param name The name of the pref | |
| 268 | * @return The value of the pref | |
| 269 | */ | |
| 15884 | 270 | int purple_prefs_get_int(const char *name); |
| 5441 | 271 | |
| 272 | /** | |
| 273 | * Get string pref value | |
| 274 | * | |
| 275 | * @param name The name of the pref | |
| 276 | * @return The value of the pref | |
| 277 | */ | |
| 15884 | 278 | const char *purple_prefs_get_string(const char *name); |
| 5441 | 279 | |
| 280 | /** | |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10066
diff
changeset
|
281 | * Get string list pref value |
| 5561 | 282 | * |
| 283 | * @param name The name of the pref | |
| 284 | * @return The value of the pref | |
| 285 | */ | |
| 15884 | 286 | GList *purple_prefs_get_string_list(const char *name); |
| 5561 | 287 | |
| 288 | /** | |
| 15370 | 289 | * Get path pref value |
| 290 | * | |
| 291 | * @param name The name of the pref | |
| 292 | * @return The value of the pref | |
| 293 | */ | |
| 15884 | 294 | const char *purple_prefs_get_path(const char *name); |
| 15370 | 295 | |
| 296 | /** | |
| 297 | * Get path list pref value | |
| 298 | * | |
| 299 | * @param name The name of the pref | |
| 300 | * @return The value of the pref | |
| 301 | */ | |
| 15884 | 302 | GList *purple_prefs_get_path_list(const char *name); |
| 15370 | 303 | |
|
23129
f2be0f621ef6
Make this a doxygen comment.
Etan Reisner <deryni@pidgin.im>
parents:
21427
diff
changeset
|
304 | /** |
|
18714
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
305 | * Returns a list of children for a pref |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
306 | * |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
307 | * @param name The parent pref |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
308 | * @return A list of newly allocated strings denoting the names of the children. |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
309 | * Returns @c NULL if there are no children or if pref doesn't exist. |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
310 | * The caller must free all the strings and the list. |
|
20940
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
311 | * |
|
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
312 | * @since 2.1.0 |
|
18714
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
313 | */ |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
314 | GList *purple_prefs_get_children_names(const char *name); |
| 15370 | 315 | |
| 316 | /** | |
| 5441 | 317 | * Add a callback to a pref (and its children) |
| 318 | */ | |
| 15884 | 319 | guint purple_prefs_connect_callback(void *handle, const char *name, PurplePrefCallback cb, |
| 5441 | 320 | gpointer data); |
| 321 | ||
| 322 | /** | |
| 323 | * Remove a callback to a pref | |
| 324 | */ | |
| 15884 | 325 | void purple_prefs_disconnect_callback(guint callback_id); |
| 5441 | 326 | |
| 327 | /** | |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
328 | * Remove all pref callbacks by handle |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
329 | */ |
| 15884 | 330 | void purple_prefs_disconnect_by_handle(void *handle); |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
331 | |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
332 | /** |
| 5684 | 333 | * Trigger callbacks as if the pref changed |
| 334 | */ | |
| 15884 | 335 | void purple_prefs_trigger_callback(const char *name); |
| 5684 | 336 | |
| 337 | /** | |
| 5441 | 338 | * Read preferences |
| 339 | */ | |
| 15884 | 340 | gboolean purple_prefs_load(void); |
| 5441 | 341 | |
| 342 | /** | |
|
8900
14f4b7ae958e
[gaim-migrate @ 9669]
Mark Doliner <markdoliner@pidgin.im>
parents:
8705
diff
changeset
|
343 | * Rename legacy prefs and delete some that no longer exist. |
|
14f4b7ae958e
[gaim-migrate @ 9669]
Mark Doliner <markdoliner@pidgin.im>
parents:
8705
diff
changeset
|
344 | */ |
| 15884 | 345 | void purple_prefs_update_old(void); |
|
8900
14f4b7ae958e
[gaim-migrate @ 9669]
Mark Doliner <markdoliner@pidgin.im>
parents:
8705
diff
changeset
|
346 | |
| 5441 | 347 | /*@}*/ |
| 348 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
349 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
350 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
351 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
352 | |
| 15884 | 353 | #endif /* _PURPLE_PREFS_H_ */ |