| 112 * @param value The initial value to set |
114 * @param value The initial value to set |
| 113 */ |
115 */ |
| 114 void gaim_prefs_add_string_list(const char *name, GList *value); |
116 void gaim_prefs_add_string_list(const char *name, GList *value); |
| 115 |
117 |
| 116 /** |
118 /** |
| |
119 * Add a new path pref. |
| |
120 * |
| |
121 * @param name The name of the pref |
| |
122 * @param value The initial value to set |
| |
123 */ |
| |
124 void gaim_prefs_add_path(const char *name, const char *value); |
| |
125 |
| |
126 /** |
| |
127 * Add a new path list pref. |
| |
128 * |
| |
129 * @param name The name of the pref |
| |
130 * @param value The initial value to set |
| |
131 */ |
| |
132 void gaim_prefs_add_path_list(const char *name, GList *value); |
| |
133 |
| |
134 |
| |
135 /** |
| 117 * Remove a pref. |
136 * Remove a pref. |
| 118 * |
137 * |
| 119 * @param name The name of the pref |
138 * @param name The name of the pref |
| 120 */ |
139 */ |
| 121 void gaim_prefs_remove(const char *name); |
140 void gaim_prefs_remove(const char *name); |
| 172 * @param value The value to set |
191 * @param value The value to set |
| 173 */ |
192 */ |
| 174 void gaim_prefs_set_string(const char *name, const char *value); |
193 void gaim_prefs_set_string(const char *name, const char *value); |
| 175 |
194 |
| 176 /** |
195 /** |
| 177 * Set string pref value |
196 * Set string list pref value |
| 178 * |
197 * |
| 179 * @param name The name of the pref |
198 * @param name The name of the pref |
| 180 * @param value The value to set |
199 * @param value The value to set |
| 181 */ |
200 */ |
| 182 void gaim_prefs_set_string_list(const char *name, GList *value); |
201 void gaim_prefs_set_string_list(const char *name, GList *value); |
| 183 |
202 |
| 184 /** |
203 /** |
| |
204 * Set path pref value |
| |
205 * |
| |
206 * @param name The name of the pref |
| |
207 * @param value The value to set |
| |
208 */ |
| |
209 void gaim_prefs_set_path(const char *name, const char *value); |
| |
210 |
| |
211 /** |
| |
212 * Set path list pref value |
| |
213 * |
| |
214 * @param name The name of the pref |
| |
215 * @param value The value to set |
| |
216 */ |
| |
217 void gaim_prefs_set_path_list(const char *name, GList *value); |
| |
218 |
| |
219 |
| |
220 /** |
| 185 * Check if a pref exists |
221 * Check if a pref exists |
| 186 * |
222 * |
| 187 * @param name The name of the pref |
223 * @param name The name of the pref |
| 188 * @return TRUE if the pref exists. Otherwise FALSE. |
224 * @return TRUE if the pref exists. Otherwise FALSE. |
| 189 */ |
225 */ |
| 226 * |
262 * |
| 227 * @param name The name of the pref |
263 * @param name The name of the pref |
| 228 * @return The value of the pref |
264 * @return The value of the pref |
| 229 */ |
265 */ |
| 230 GList *gaim_prefs_get_string_list(const char *name); |
266 GList *gaim_prefs_get_string_list(const char *name); |
| |
267 |
| |
268 /** |
| |
269 * Get path pref value |
| |
270 * |
| |
271 * @param name The name of the pref |
| |
272 * @return The value of the pref |
| |
273 */ |
| |
274 const char *gaim_prefs_get_path(const char *name); |
| |
275 |
| |
276 /** |
| |
277 * Get path list pref value |
| |
278 * |
| |
279 * @param name The name of the pref |
| |
280 * @return The value of the pref |
| |
281 */ |
| |
282 GList *gaim_prefs_get_path_list(const char *name); |
| |
283 |
| 231 |
284 |
| 232 /** |
285 /** |
| 233 * Add a callback to a pref (and its children) |
286 * Add a callback to a pref (and its children) |
| 234 */ |
287 */ |
| 235 guint gaim_prefs_connect_callback(void *handle, const char *name, GaimPrefCallback cb, |
288 guint gaim_prefs_connect_callback(void *handle, const char *name, GaimPrefCallback cb, |