Thu, 22 Sep 2016 01:24:53 +0200
IRC: Skip EXTERNAL SASL auth mechanism
Makes Freenode and other servers that prefer SASL EXTERNAL
fingerprint authentication work again.
Ref:
"Cannot connect to IRC (Freenode)"
https://pidgin.im/pipermail/support/2016-September/029627.html
| 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 | |
|
37750
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
65 | /** |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
66 | * Opaque type to carry callback information |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
67 | * |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
68 | * @since 2.11.0 |
|
37750
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
69 | */ |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
70 | typedef struct _PurplePrefCallbackData PurplePrefCallbackData; |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
71 | |
|
37749
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
72 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
73 | /** @copydoc _PurplePrefsUiOps */ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
74 | typedef struct _PurplePrefsUiOps PurplePrefsUiOps; |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
75 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
76 | |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
77 | /** |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
78 | * Prefs UI operations. This allows overriding the prefs.xml storage with |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
79 | * anything else. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
80 | * |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
81 | * Unless specified otherwise, each entry provides an implementation for the |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
82 | * corresponding purple_prefs_* method, and disables the prefs.xml code for it. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
83 | * This means that to do anything useful, all the methods must be implemented. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
84 | * |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
85 | * @since 2.11.0 |
|
37749
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
86 | */ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
87 | struct _PurplePrefsUiOps |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
88 | { |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
89 | void (*add_none)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
90 | void (*add_bool)(const char *name, gboolean value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
91 | void (*add_int)(const char *name, int value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
92 | void (*add_string)(const char *name, const char *value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
93 | void (*add_string_list)(const char *name, GList *value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
94 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
95 | void (*set_bool)(const char *name, gboolean value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
96 | void (*set_int)(const char *name, int value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
97 | void (*set_string)(const char *name, const char *value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
98 | void (*set_string_list)(const char *name, GList *value); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
99 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
100 | gboolean (*get_bool)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
101 | int (*get_int)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
102 | const char *(*get_string)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
103 | GList *(*get_string_list)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
104 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
105 | PurplePrefType (*get_type)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
106 | GList *(*get_children_names)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
107 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
108 | gboolean (*exists)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
109 | void (*remove)(const char *name); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
110 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
111 | void (*rename)(const char *oldname, const char *newname); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
112 | void (*rename_boolean_toggle)(const char *oldname, const char *newname); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
113 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
114 | gboolean (*load)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
115 | void (*save)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
116 | void (*schedule_save)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
117 | |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
118 | /** |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
119 | * Called when a callback is added to a preference. The UI must keep |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
120 | * track of it and call #purple_prefs_trigger_callback_object with the |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
121 | * data attribute. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
122 | * |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
123 | * @param name The preference name. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
124 | * @param data The object to be passed when triggering the callback |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
125 | * @return A pointer to a ui_data object. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
126 | * */ |
|
37750
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
127 | void *(*connect_callback)(const char *name, PurplePrefCallbackData *data); |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
128 | |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
129 | /** |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
130 | * Called when a callback is removed from a preference. The ui_data |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
131 | * object is the one returned from connect_callback. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
132 | * |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
133 | * @param name The preference name |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
134 | * @param ui_data The object that was returned from the |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
135 | * connect_callback UI OP. |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
136 | * */ |
|
37750
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
137 | void (*disconnect_callback)(const char *name, void *ui_data); |
|
37749
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
138 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
139 | void (*_purple_reserved1)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
140 | void (*_purple_reserved2)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
141 | void (*_purple_reserved3)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
142 | void (*_purple_reserved4)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
143 | void (*_purple_reserved5)(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
144 | }; |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
145 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
146 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
147 | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
148 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
149 | extern "C" { |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
150 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
151 | |
| 5441 | 152 | /**************************************************************************/ |
|
37749
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
153 | /** @name UI Registration Functions */ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
154 | /**************************************************************************/ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
155 | /*@{*/ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
156 | /** |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
157 | * Sets the UI operations structure to be used for preferences. |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
158 | * |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
159 | * @param ops The UI operations structure. |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
160 | * @since 2.11.0 |
|
37749
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
161 | */ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
162 | void purple_prefs_set_ui_ops(PurplePrefsUiOps *ops); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
163 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
164 | /** |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
165 | * Returns the UI operations structure used for preferences. |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
166 | * |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
167 | * @return The UI operations structure in use. |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
168 | * @since 2.11.0 |
|
37749
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
169 | */ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
170 | PurplePrefsUiOps *purple_prefs_get_ui_ops(void); |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
171 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
172 | /*@}*/ |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
173 | |
|
2e00aa78cb1f
Add PurplePrefsUiOps API from instantbird
dx <dx@dxzone.com.ar>
parents:
29267
diff
changeset
|
174 | /**************************************************************************/ |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23129
diff
changeset
|
175 | /** @name Prefs API |
|
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23129
diff
changeset
|
176 | 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
|
177 | Example: "/plugins/core/potato/is_from_idaho" (probably a boolean) */ |
| 5441 | 178 | /**************************************************************************/ |
| 179 | /*@{*/ | |
| 180 | ||
| 181 | /** | |
|
10443
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
182 | * Returns the prefs subsystem handle. |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
183 | * |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
184 | * @return The prefs subsystem handle. |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
185 | */ |
| 15884 | 186 | void *purple_prefs_get_handle(void); |
|
10443
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
187 | |
|
aa7dcc1c796a
[gaim-migrate @ 11703]
Mark Doliner <markdoliner@pidgin.im>
parents:
10087
diff
changeset
|
188 | /** |
| 5441 | 189 | * Initialize core prefs |
| 190 | */ | |
| 15884 | 191 | void purple_prefs_init(void); |
| 5441 | 192 | |
| 193 | /** | |
| 8235 | 194 | * Uninitializes the prefs subsystem. |
| 195 | */ | |
| 15884 | 196 | void purple_prefs_uninit(void); |
| 8235 | 197 | |
| 198 | /** | |
| 5441 | 199 | * Add a new typeless pref. |
| 200 | * | |
| 201 | * @param name The name of the pref | |
| 202 | */ | |
| 15884 | 203 | void purple_prefs_add_none(const char *name); |
| 5441 | 204 | |
| 205 | /** | |
| 206 | * Add a new boolean pref. | |
| 207 | * | |
| 208 | * @param name The name of the pref | |
| 209 | * @param value The initial value to set | |
| 210 | */ | |
| 15884 | 211 | void purple_prefs_add_bool(const char *name, gboolean value); |
| 5441 | 212 | |
| 213 | /** | |
| 214 | * Add a new integer pref. | |
| 215 | * | |
| 216 | * @param name The name of the pref | |
| 217 | * @param value The initial value to set | |
| 218 | */ | |
| 15884 | 219 | void purple_prefs_add_int(const char *name, int value); |
| 5441 | 220 | |
| 221 | /** | |
| 222 | * Add a new string pref. | |
| 223 | * | |
| 224 | * @param name The name of the pref | |
| 225 | * @param value The initial value to set | |
| 226 | */ | |
| 15884 | 227 | void purple_prefs_add_string(const char *name, const char *value); |
| 5441 | 228 | |
| 229 | /** | |
| 5561 | 230 | * Add a new string list pref. |
| 231 | * | |
| 232 | * @param name The name of the pref | |
| 233 | * @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
|
234 | * @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
|
235 | * 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
|
236 | * free. |
| 5561 | 237 | */ |
| 15884 | 238 | void purple_prefs_add_string_list(const char *name, GList *value); |
| 5561 | 239 | |
| 240 | /** | |
| 15370 | 241 | * Add a new path pref. |
| 242 | * | |
| 243 | * @param name The name of the pref | |
| 244 | * @param value The initial value to set | |
| 245 | */ | |
| 15884 | 246 | void purple_prefs_add_path(const char *name, const char *value); |
| 15370 | 247 | |
| 248 | /** | |
| 249 | * Add a new path list pref. | |
| 250 | * | |
| 251 | * @param name The name of the pref | |
| 252 | * @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
|
253 | * @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
|
254 | * 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
|
255 | * free. |
| 15370 | 256 | */ |
| 15884 | 257 | void purple_prefs_add_path_list(const char *name, GList *value); |
| 15370 | 258 | |
| 259 | ||
| 260 | /** | |
| 5441 | 261 | * Remove a pref. |
| 262 | * | |
| 263 | * @param name The name of the pref | |
| 264 | */ | |
| 15884 | 265 | void purple_prefs_remove(const char *name); |
| 5441 | 266 | |
| 267 | /** | |
| 6693 | 268 | * Rename a pref |
| 269 | * | |
| 270 | * @param oldname The old name of the pref | |
| 271 | * @param newname The new name for the pref | |
| 272 | */ | |
| 15884 | 273 | void purple_prefs_rename(const char *oldname, const char *newname); |
| 6693 | 274 | |
| 275 | /** | |
| 8705 | 276 | * Rename a boolean pref, toggling it's value |
| 277 | * | |
| 278 | * @param oldname The old name of the pref | |
| 279 | * @param newname The new name for the pref | |
| 280 | */ | |
| 15884 | 281 | void purple_prefs_rename_boolean_toggle(const char *oldname, const char *newname); |
| 8705 | 282 | |
| 283 | /** | |
| 5441 | 284 | * Remove all prefs. |
| 285 | */ | |
| 15884 | 286 | void purple_prefs_destroy(void); |
| 5441 | 287 | |
| 288 | /** | |
| 289 | * Set raw pref value | |
| 290 | * | |
| 291 | * @param name The name of the pref | |
| 292 | * @param value The value to set | |
|
29266
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
293 | * |
|
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
294 | * @deprecated We're not really sure what purpose this function serves, so it |
|
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
295 | * will be removed in 3.0.0. Preferences values set using this |
|
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
296 | * function aren't serialized to prefs.xml, which could be |
|
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
297 | * misleading. There is also no purple_prefs_get_generic, which |
|
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
298 | * means that if you can't really get the value (other in a |
|
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
299 | * connected callback). If you think you have a use for this then |
|
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
300 | * please let us know. |
| 5441 | 301 | */ |
|
29266
6bbb2f3d7ade
Mark this function as deprecated because I really don't know what
Mark Doliner <markdoliner@pidgin.im>
parents:
27805
diff
changeset
|
302 | /* TODO: When this is removed, also remove struct purple_pref->value.generic */ |
| 15884 | 303 | void purple_prefs_set_generic(const char *name, gpointer value); |
| 5441 | 304 | |
| 305 | /** | |
| 306 | * Set boolean pref value | |
| 307 | * | |
| 308 | * @param name The name of the pref | |
| 309 | * @param value The value to set | |
| 310 | */ | |
| 15884 | 311 | void purple_prefs_set_bool(const char *name, gboolean value); |
| 5441 | 312 | |
| 313 | /** | |
| 314 | * Set integer pref value | |
| 315 | * | |
| 316 | * @param name The name of the pref | |
| 317 | * @param value The value to set | |
| 318 | */ | |
| 15884 | 319 | void purple_prefs_set_int(const char *name, int value); |
| 5441 | 320 | |
| 321 | /** | |
| 322 | * Set string pref value | |
| 323 | * | |
| 324 | * @param name The name of the pref | |
| 325 | * @param value The value to set | |
| 326 | */ | |
| 15884 | 327 | void purple_prefs_set_string(const char *name, const char *value); |
| 5441 | 328 | |
| 329 | /** | |
| 15370 | 330 | * Set string list pref value |
| 5561 | 331 | * |
| 332 | * @param name The name of the pref | |
| 333 | * @param value The value to set | |
| 334 | */ | |
| 15884 | 335 | void purple_prefs_set_string_list(const char *name, GList *value); |
| 5561 | 336 | |
| 337 | /** | |
| 15370 | 338 | * Set path pref value |
| 339 | * | |
| 340 | * @param name The name of the pref | |
| 341 | * @param value The value to set | |
| 342 | */ | |
| 15884 | 343 | void purple_prefs_set_path(const char *name, const char *value); |
| 15370 | 344 | |
| 345 | /** | |
| 346 | * Set path list pref value | |
| 347 | * | |
| 348 | * @param name The name of the pref | |
| 349 | * @param value The value to set | |
| 350 | */ | |
| 15884 | 351 | void purple_prefs_set_path_list(const char *name, GList *value); |
| 15370 | 352 | |
| 353 | ||
| 354 | /** | |
| 9611 | 355 | * Check if a pref exists |
| 356 | * | |
|
9619
2d8adb92f665
[gaim-migrate @ 10463]
Mark Doliner <markdoliner@pidgin.im>
parents:
9611
diff
changeset
|
357 | * @param name The name of the pref |
|
2d8adb92f665
[gaim-migrate @ 10463]
Mark Doliner <markdoliner@pidgin.im>
parents:
9611
diff
changeset
|
358 | * @return TRUE if the pref exists. Otherwise FALSE. |
| 9611 | 359 | */ |
| 15884 | 360 | gboolean purple_prefs_exists(const char *name); |
| 9611 | 361 | |
| 362 | /** | |
| 6538 | 363 | * Get pref type |
| 364 | * | |
| 365 | * @param name The name of the pref | |
| 366 | * @return The type of the pref | |
| 367 | */ | |
| 15884 | 368 | PurplePrefType purple_prefs_get_type(const char *name); |
| 6538 | 369 | |
| 370 | /** | |
| 5441 | 371 | * Get boolean pref value |
| 372 | * | |
| 373 | * @param name The name of the pref | |
| 374 | * @return The value of the pref | |
| 375 | */ | |
| 15884 | 376 | gboolean purple_prefs_get_bool(const char *name); |
| 5441 | 377 | |
| 378 | /** | |
| 379 | * Get integer pref value | |
| 380 | * | |
| 381 | * @param name The name of the pref | |
| 382 | * @return The value of the pref | |
| 383 | */ | |
| 15884 | 384 | int purple_prefs_get_int(const char *name); |
| 5441 | 385 | |
| 386 | /** | |
| 387 | * Get string pref value | |
| 388 | * | |
| 389 | * @param name The name of the pref | |
| 390 | * @return The value of the pref | |
| 391 | */ | |
| 15884 | 392 | const char *purple_prefs_get_string(const char *name); |
| 5441 | 393 | |
| 394 | /** | |
|
10071
d2ba11541693
[gaim-migrate @ 11047]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
10066
diff
changeset
|
395 | * Get string list pref value |
| 5561 | 396 | * |
| 397 | * @param name The name of the pref | |
| 398 | * @return The value of the pref | |
| 399 | */ | |
| 15884 | 400 | GList *purple_prefs_get_string_list(const char *name); |
| 5561 | 401 | |
| 402 | /** | |
| 15370 | 403 | * Get path pref value |
| 404 | * | |
| 405 | * @param name The name of the pref | |
| 406 | * @return The value of the pref | |
| 407 | */ | |
| 15884 | 408 | const char *purple_prefs_get_path(const char *name); |
| 15370 | 409 | |
| 410 | /** | |
| 411 | * Get path list pref value | |
| 412 | * | |
| 413 | * @param name The name of the pref | |
| 414 | * @return The value of the pref | |
| 415 | */ | |
| 15884 | 416 | GList *purple_prefs_get_path_list(const char *name); |
| 15370 | 417 | |
|
23129
f2be0f621ef6
Make this a doxygen comment.
Etan Reisner <deryni@pidgin.im>
parents:
21427
diff
changeset
|
418 | /** |
|
18714
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
419 | * 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
|
420 | * |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
421 | * @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
|
422 | * @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
|
423 | * 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
|
424 | * 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
|
425 | * |
|
925d3d68b3af
Doxygen @since tags for libpurple and pidgin.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20147
diff
changeset
|
426 | * @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
|
427 | */ |
|
65048af91a2c
Add purple_prefs_get_children_names in purple. And update Changelog.API
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15884
diff
changeset
|
428 | GList *purple_prefs_get_children_names(const char *name); |
| 15370 | 429 | |
| 430 | /** | |
| 5441 | 431 | * Add a callback to a pref (and its children) |
|
27805
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
432 | * |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
433 | * @param handle The handle of the receiver. |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
434 | * @param name The name of the preference |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
435 | * @param cb The callback function |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
436 | * @param data The data to pass to the callback function. |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
437 | * |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
438 | * @return An id to disconnect the callback |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
439 | * |
|
91e9fff01764
documents purple_prefs_connect_callback
Ka-Hing Cheung <khc@pidgin.im>
parents:
25911
diff
changeset
|
440 | * @see purple_prefs_disconnect_callback |
| 5441 | 441 | */ |
| 15884 | 442 | guint purple_prefs_connect_callback(void *handle, const char *name, PurplePrefCallback cb, |
| 5441 | 443 | gpointer data); |
| 444 | ||
| 445 | /** | |
| 446 | * Remove a callback to a pref | |
| 447 | */ | |
| 15884 | 448 | void purple_prefs_disconnect_callback(guint callback_id); |
| 5441 | 449 | |
| 450 | /** | |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
451 | * Remove all pref callbacks by handle |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
452 | */ |
| 15884 | 453 | void purple_prefs_disconnect_by_handle(void *handle); |
|
10087
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
454 | |
|
e5b80a38939d
[gaim-migrate @ 11098]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10071
diff
changeset
|
455 | /** |
| 5684 | 456 | * Trigger callbacks as if the pref changed |
| 457 | */ | |
| 15884 | 458 | void purple_prefs_trigger_callback(const char *name); |
| 5684 | 459 | |
| 460 | /** | |
|
37750
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
461 | * Trigger callbacks as if the pref changed, taking a #PurplePrefCallbackData |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
462 | * instead of a name |
|
37756
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
463 | * |
|
421e7b2020eb
Add more documentation for PurpleAccountPrefsUiOps and PurplePrefsUiOps
dx <dx@dxzone.com.ar>
parents:
37750
diff
changeset
|
464 | * @since 2.11.0 |
|
37750
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
465 | */ |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
466 | void purple_prefs_trigger_callback_object(PurplePrefCallbackData *data); |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
467 | |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
468 | |
|
c3548438b3a8
Implement PurplePrefsUiOps.(dis)connect_callback from instantbird
dx <dx@dxzone.com.ar>
parents:
37749
diff
changeset
|
469 | /** |
| 5441 | 470 | * Read preferences |
| 471 | */ | |
| 15884 | 472 | gboolean purple_prefs_load(void); |
| 5441 | 473 | |
| 474 | /** | |
|
8900
14f4b7ae958e
[gaim-migrate @ 9669]
Mark Doliner <markdoliner@pidgin.im>
parents:
8705
diff
changeset
|
475 | * Rename legacy prefs and delete some that no longer exist. |
|
14f4b7ae958e
[gaim-migrate @ 9669]
Mark Doliner <markdoliner@pidgin.im>
parents:
8705
diff
changeset
|
476 | */ |
| 15884 | 477 | void purple_prefs_update_old(void); |
|
8900
14f4b7ae958e
[gaim-migrate @ 9669]
Mark Doliner <markdoliner@pidgin.im>
parents:
8705
diff
changeset
|
478 | |
| 5441 | 479 | /*@}*/ |
| 480 | ||
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
481 | #ifdef __cplusplus |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
482 | } |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
483 | #endif |
|
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5684
diff
changeset
|
484 | |
| 15884 | 485 | #endif /* _PURPLE_PREFS_H_ */ |