Mercurial > pidgin
annotate src/blist.h @ 7078:acd2a66e59ed
[gaim-migrate @ 7643]
robot101 gave us images in notify_formatted windows. very cool. This lets what I committed earlier (which was support for images in jabber vcards) to work.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 30 Sep 2003 18:41:28 +0000 |
parents | 9946001989a3 |
children | 770233dad86c |
rev | line source |
---|---|
5228 | 1 /** |
5497 | 2 * @file blist.h Buddy List API |
5228 | 3 * @ingroup core |
4 * | |
5 * gaim | |
6 * | |
7 * Copyright (C) 2003, Sean Egan <sean.egan@binghamton.edu> | |
6485
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
8 * |
5228 | 9 * This program is free software; you can redistribute it and/or modify |
10 * it under the terms of the GNU General Public License as published by | |
11 * the Free Software Foundation; either version 2 of the License, or | |
12 * (at your option) any later version. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, | |
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program; if not, write to the Free Software | |
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 */ | |
23 | |
24 /* I can't believe I let ChipX86 inspire me to write good code. -Sean */ | |
25 | |
6695 | 26 #ifndef _BLIST_H_ |
27 #define _BLIST_H_ | |
5228 | 28 |
29 #include <glib.h> | |
30 | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
31 typedef struct _GaimBlistNode GaimBlistNode; |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
32 |
6695 | 33 typedef struct _GaimBlistChat GaimBlistChat; |
34 typedef struct _GaimGroup GaimGroup; | |
35 typedef struct _GaimContact GaimContact; | |
36 typedef struct _GaimBuddy GaimBuddy; | |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
37 |
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
38 #include "account.h" |
6846
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
39 #include "buddyicon.h" |
5564
187c740f2a4e
[gaim-migrate @ 5966]
Christian Hammond <chipx86@chipx86.com>
parents:
5563
diff
changeset
|
40 |
5228 | 41 /**************************************************************************/ |
42 /* Enumerations */ | |
43 /**************************************************************************/ | |
44 enum gaim_blist_node_type { | |
45 GAIM_BLIST_GROUP_NODE, | |
6695 | 46 GAIM_BLIST_CONTACT_NODE, |
5228 | 47 GAIM_BLIST_BUDDY_NODE, |
5234 | 48 GAIM_BLIST_CHAT_NODE, |
6063 | 49 GAIM_BLIST_OTHER_NODE |
5228 | 50 }; |
51 | |
5234 | 52 #define GAIM_BLIST_NODE_IS_CHAT(n) ((n)->type == GAIM_BLIST_CHAT_NODE) |
5228 | 53 #define GAIM_BLIST_NODE_IS_BUDDY(n) ((n)->type == GAIM_BLIST_BUDDY_NODE) |
6695 | 54 #define GAIM_BLIST_NODE_IS_CONTACT(n) ((n)->type == GAIM_BLIST_CONTACT_NODE) |
5228 | 55 #define GAIM_BLIST_NODE_IS_GROUP(n) ((n)->type == GAIM_BLIST_GROUP_NODE) |
56 | |
57 enum gaim_buddy_presence_state { | |
58 GAIM_BUDDY_SIGNING_OFF = -1, | |
59 GAIM_BUDDY_OFFLINE = 0, | |
60 GAIM_BUDDY_ONLINE, | |
6063 | 61 GAIM_BUDDY_SIGNING_ON |
5228 | 62 }; |
63 | |
6695 | 64 #define GAIM_BUDDY_IS_ONLINE(b) ((b)->account->gc && \ |
65 ((b)->present == GAIM_BUDDY_ONLINE || \ | |
66 (b)->present == GAIM_BUDDY_SIGNING_ON)) | |
5228 | 67 |
68 | |
69 /**************************************************************************/ | |
70 /* Data Structures */ | |
71 /**************************************************************************/ | |
72 | |
73 /** | |
74 * A Buddy list node. This can represent a group, a buddy, or anything else. This is a base class for struct buddy and | |
75 * struct group and for anything else that wants to put itself in the buddy list. */ | |
76 struct _GaimBlistNode { | |
77 enum gaim_blist_node_type type; /**< The type of node this is */ | |
78 GaimBlistNode *prev; /**< The sibling before this buddy. */ | |
79 GaimBlistNode *next; /**< The sibling after this buddy. */ | |
80 GaimBlistNode *parent; /**< The parent of this node */ | |
81 GaimBlistNode *child; /**< The child of this node */ | |
82 void *ui_data; /**< The UI can put data here. */ | |
83 }; | |
84 | |
85 /** | |
86 * A buddy. This contains everything Gaim will ever need to know about someone on the buddy list. Everything. | |
87 */ | |
6695 | 88 struct _GaimBuddy { |
5228 | 89 GaimBlistNode node; /**< The node that this buddy inherits from */ |
90 char *name; /**< The screenname of the buddy. */ | |
91 char *alias; /**< The user-set alias of the buddy */ | |
6695 | 92 char *server_alias; /**< The server-specified alias of the buddy. (i.e. MSN "Friendly Names") */ |
5228 | 93 enum gaim_buddy_presence_state present; /**< This is 0 if the buddy appears offline, 1 if he appears online, and 2 if |
94 he has recently signed on */ | |
95 int evil; /**< The warning level */ | |
96 time_t signon; /**< The time the buddy signed on. */ | |
97 int idle; /**< The time the buddy has been idle in minutes. */ | |
98 int uc; /**< This is a cryptic bitmask that makes sense only to the prpl. This will get changed */ | |
99 void *proto_data; /**< This allows the prpl to associate whatever data it wants with a buddy */ | |
6846
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
100 GaimBuddyIcon *icon; /**< The buddy icon. */ |
6695 | 101 GaimAccount *account; /**< the account this buddy belongs to */ |
5228 | 102 GHashTable *settings; /**< per-buddy settings from the XML buddy list, set by plugins and the likes. */ |
103 guint timer; /**< The timer handle. */ | |
104 }; | |
105 | |
106 /** | |
6695 | 107 * A contact. This contains everything Gaim will ever need to know about a contact. |
108 */ | |
109 struct _GaimContact { | |
6755 | 110 GaimBlistNode node; /**< The node that this contact inherits from. */ |
111 char *alias; /**< The user-set alias of the contact */ | |
112 int totalsize; /**< The number of buddies in this contact */ | |
113 int currentsize; /**< The number of buddies in this contact corresponding to online accounts */ | |
114 int online; /**< The number of buddies in this contact who are currently online */ | |
6843 | 115 GaimBuddy *priority; /**< The "top" buddy for this contact */ |
6695 | 116 }; |
117 | |
118 | |
119 /** | |
5228 | 120 * A group. This contains everything Gaim will ever need to know about a group. |
121 */ | |
6695 | 122 struct _GaimGroup { |
5228 | 123 GaimBlistNode node; /**< The node that this group inherits from */ |
124 char *name; /**< The name of this group. */ | |
6695 | 125 int totalsize; /**< The number of chats and contacts in this group */ |
126 int currentsize; /**< The number of chats and contacts in this group corresponding to online accounts */ | |
127 int online; /**< The number of chats and contacts in this group who are currently online */ | |
5228 | 128 GHashTable *settings; /**< per-group settings from the XML buddy list, set by plugins and the likes. */ |
129 }; | |
130 | |
5234 | 131 /** |
6695 | 132 * A chat. This contains everything Gaim needs to put a chat room in the |
5234 | 133 * buddy list. |
134 */ | |
6695 | 135 struct _GaimBlistChat { |
5234 | 136 GaimBlistNode node; /**< The node that this chat inherits from */ |
137 char *alias; /**< The display name of this chat. */ | |
138 GHashTable *components; /**< the stuff the protocol needs to know to join the chat */ | |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5497
diff
changeset
|
139 GaimAccount *account; /**< The account this chat is attached to */ |
5906 | 140 GHashTable *settings; /**< per-chat settings from the XML buddy list, set by plugins and the likes. */ |
5234 | 141 }; |
142 | |
5228 | 143 |
144 /** | |
145 * The Buddy List | |
146 */ | |
147 struct gaim_buddy_list { | |
148 GaimBlistNode *root; /**< The first node in the buddy list */ | |
5247 | 149 GHashTable *buddies; /**< Every buddy in this list */ |
5228 | 150 struct gaim_blist_ui_ops *ui_ops; /**< The UI operations for the buddy list */ |
151 | |
152 void *ui_data; /**< UI-specific data. */ | |
153 }; | |
154 | |
155 /** | |
156 * Buddy list UI operations. | |
157 * | |
158 * Any UI representing a buddy list must assign a filled-out gaim_window_ops | |
159 * structure to the buddy list core. | |
160 */ | |
161 struct gaim_blist_ui_ops | |
162 { | |
163 void (*new_list)(struct gaim_buddy_list *list); /**< Sets UI-specific data on a buddy list. */ | |
164 void (*new_node)(GaimBlistNode *node); /**< Sets UI-specific data on a node. */ | |
165 void (*show)(struct gaim_buddy_list *list); /**< The core will call this when its finished doing it's core stuff */ | |
6695 | 166 void (*update)(struct gaim_buddy_list *list, |
5228 | 167 GaimBlistNode *node); /**< This will update a node in the buddy list. */ |
168 void (*remove)(struct gaim_buddy_list *list, | |
169 GaimBlistNode *node); /**< This removes a node from the list */ | |
170 void (*destroy)(struct gaim_buddy_list *list); /**< When the list gets destroyed, this gets called to destroy the UI. */ | |
171 void (*set_visible)(struct gaim_buddy_list *list, | |
172 gboolean show); /**< Hides or unhides the buddy list */ | |
7060
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
173 void (*request_add_buddy)(GaimAccount *account, const char *username, |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
174 const char *group, const char *alias); |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
175 void (*request_add_chat)(GaimAccount *account, GaimGroup *group); |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
176 void (*request_add_group)(void); |
5228 | 177 }; |
178 | |
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
179 #ifdef __cplusplus |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
180 extern "C" { |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
181 #endif |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
182 |
5228 | 183 /**************************************************************************/ |
184 /** @name Buddy List API */ | |
185 /**************************************************************************/ | |
186 /*@{*/ | |
187 | |
188 /** | |
189 * Creates a new buddy list | |
190 */ | |
191 struct gaim_buddy_list *gaim_blist_new(); | |
192 | |
193 /** | |
194 * Sets the main buddy list. | |
195 * | |
196 * @return The main buddy list. | |
197 */ | |
198 void gaim_set_blist(struct gaim_buddy_list *blist); | |
199 | |
200 /** | |
201 * Returns the main buddy list. | |
202 * | |
203 * @return The main buddy list. | |
204 */ | |
205 struct gaim_buddy_list *gaim_get_blist(void); | |
206 | |
207 /** | |
208 * Shows the buddy list, creating a new one if necessary. | |
209 * | |
210 */ | |
211 void gaim_blist_show(); | |
212 | |
213 | |
214 /** | |
215 * Destroys the buddy list window. | |
216 */ | |
217 void gaim_blist_destroy(); | |
218 | |
219 /** | |
220 * Hides or unhides the buddy list. | |
221 * | |
222 * @param show Whether or not to show the buddy list | |
223 */ | |
224 void gaim_blist_set_visible(gboolean show); | |
225 | |
226 /** | |
227 * Updates a buddy's status. | |
5234 | 228 * |
5228 | 229 * This needs to not take an int. |
230 * | |
231 * @param buddy The buddy whose status has changed | |
232 * @param status The new status in cryptic prpl-understood code | |
233 */ | |
6695 | 234 void gaim_blist_update_buddy_status(GaimBuddy *buddy, int status); |
5228 | 235 |
236 | |
237 /** | |
238 * Updates a buddy's presence. | |
239 * | |
240 * @param buddy The buddy whose presence has changed | |
241 * @param presence The new presence | |
242 */ | |
6695 | 243 void gaim_blist_update_buddy_presence(GaimBuddy *buddy, int presence); |
5228 | 244 |
245 | |
246 /** | |
247 * Updates a buddy's idle time. | |
248 * | |
249 * @param buddy The buddy whose idle time has changed | |
250 * @param idle The buddy's idle time in minutes. | |
251 */ | |
6695 | 252 void gaim_blist_update_buddy_idle(GaimBuddy *buddy, int idle); |
5228 | 253 |
254 | |
255 /** | |
256 * Updates a buddy's warning level. | |
257 * | |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
258 * @param buddy The buddy whose warning level has changed. |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
259 * @param warning The warning level as an int from 0 to 100. |
5228 | 260 */ |
6695 | 261 void gaim_blist_update_buddy_evil(GaimBuddy *buddy, int warning); |
5228 | 262 |
263 /** | |
264 * Updates a buddy's icon. | |
265 * | |
266 * @param buddy The buddy whose buddy icon has changed | |
267 */ | |
6695 | 268 void gaim_blist_update_buddy_icon(GaimBuddy *buddy); |
5228 | 269 |
270 /** | |
271 * Renames a buddy in the buddy list. | |
272 * | |
273 * @param buddy The buddy whose name will be changed. | |
274 * @param name The new name of the buddy. | |
275 */ | |
6695 | 276 void gaim_blist_rename_buddy(GaimBuddy *buddy, const char *name); |
5228 | 277 |
278 | |
279 /** | |
280 * Aliases a buddy in the buddy list. | |
281 * | |
282 * @param buddy The buddy whose alias will be changed. | |
283 * @param alias The buddy's alias. | |
284 */ | |
6695 | 285 void gaim_blist_alias_buddy(GaimBuddy *buddy, const char *alias); |
5228 | 286 |
5234 | 287 /** |
6059 | 288 * Sets the server-sent alias of a buddy in the buddy list. |
6058 | 289 * |
290 * @param buddy The buddy whose alias will be changed. | |
291 * @param alias The buddy's "official" alias. | |
292 */ | |
6695 | 293 void gaim_blist_server_alias_buddy(GaimBuddy *buddy, const char *alias); |
6058 | 294 |
295 /** | |
5234 | 296 * Aliases a chat in the buddy list. |
297 * | |
298 * @param chat The chat whose alias will be changed. | |
299 * @param alias The chat's new alias. | |
300 */ | |
6695 | 301 void gaim_blist_alias_chat(GaimBlistChat *chat, const char *alias); |
5228 | 302 |
303 /** | |
304 * Renames a group | |
305 * | |
306 * @param group The group to rename | |
307 * @param name The new name | |
308 */ | |
6695 | 309 void gaim_blist_rename_group(GaimGroup *group, const char *name); |
5228 | 310 |
5234 | 311 /** |
312 * Creates a new chat for the buddy list | |
313 * | |
314 * @param account The account this chat will get added to | |
315 * @param alias The alias of the new chat | |
316 * @param components The info the prpl needs to join the chat | |
317 * @return A newly allocated chat | |
318 */ | |
6695 | 319 GaimBlistChat *gaim_blist_chat_new(GaimAccount *account, const char *alias, GHashTable *components); |
5234 | 320 |
321 /** | |
6034 | 322 * Gets the alias of the chat, or the chat name if the alias does not exist |
323 * | |
324 * @param chat The chat | |
325 * @return The display name of the chat | |
326 */ | |
6695 | 327 char *gaim_blist_chat_get_display_name(GaimBlistChat *chat); |
6034 | 328 |
329 /** | |
5234 | 330 * Adds a new chat to the buddy list. |
331 * | |
332 * The chat will be inserted right after node or appended to the end | |
333 * of group if node is NULL. If both are NULL, the buddy will be added to | |
334 * the "Chats" group. | |
335 * | |
336 * @param chat The new chat who gets added | |
337 * @param group The group to add the new chat to. | |
338 * @param node The insertion point | |
339 */ | |
6695 | 340 void gaim_blist_add_chat(GaimBlistChat *chat, GaimGroup *group, GaimBlistNode *node); |
5228 | 341 |
342 /** | |
343 * Creates a new buddy | |
344 * | |
345 * @param account The account this buddy will get added to | |
346 * @param screenname The screenname of the new buddy | |
347 * @param alias The alias of the new buddy (or NULL if unaliased) | |
348 * @return A newly allocated buddy | |
349 */ | |
6695 | 350 GaimBuddy *gaim_buddy_new(GaimAccount *account, const char *screenname, const char *alias); |
5228 | 351 |
352 /** | |
6846
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
353 * Sets a buddy's icon. |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
354 * |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
355 * This should only be called from within Gaim. You probably want to |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
356 * call gaim_buddy_icon_set_data(). |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
357 * |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
358 * @param buddy The buddy. |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
359 * @param icon The buddy icon. |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
360 * |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
361 * @see gaim_buddy_icon_set_data() |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
362 */ |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
363 void gaim_buddy_set_icon(GaimBuddy *buddy, GaimBuddyIcon *icon); |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
364 |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
365 /** |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
366 * Returns a buddy's icon. |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
367 * |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
368 * @param buddy The buddy. |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
369 * |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
370 * @return The buddy icon. |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
371 */ |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
372 GaimBuddyIcon *gaim_buddy_get_icon(const GaimBuddy *buddy); |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
373 |
8ab95f4c9800
[gaim-migrate @ 7391]
Christian Hammond <chipx86@chipx86.com>
parents:
6843
diff
changeset
|
374 /** |
5228 | 375 * Adds a new buddy to the buddy list. |
376 * | |
6695 | 377 * The buddy will be inserted right after node or prepended to the |
378 * group if node is NULL. If both are NULL, the buddy will be added to | |
5228 | 379 * the "Buddies" group. |
380 * | |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
381 * @param buddy The new buddy who gets added |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
382 * @param contact The optional contact to place the buddy in. |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
383 * @param group The group to add the new buddy to. |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
384 * @param node The insertion point |
5228 | 385 */ |
6695 | 386 void gaim_blist_add_buddy(GaimBuddy *buddy, GaimContact *contact, GaimGroup *group, GaimBlistNode *node); |
5228 | 387 |
388 /** | |
389 * Creates a new group | |
390 * | |
6695 | 391 * You can't have more than one group with the same name. Sorry. If you pass |
392 * this the * name of a group that already exists, it will return that group. | |
5228 | 393 * |
394 * @param name The name of the new group | |
6695 | 395 * @return A new group struct |
5228 | 396 */ |
6695 | 397 GaimGroup *gaim_group_new(const char *name); |
5228 | 398 |
399 /** | |
400 * Adds a new group to the buddy list. | |
401 * | |
6695 | 402 * The new group will be inserted after insert or prepended to the list if |
403 * node is NULL. | |
404 * | |
405 * @param group The group | |
406 * @param node The insertion point | |
407 */ | |
408 void gaim_blist_add_group(GaimGroup *group, GaimBlistNode *node); | |
409 | |
410 /** | |
411 * Creates a new contact | |
5228 | 412 * |
6695 | 413 * @return A new contact struct |
5228 | 414 */ |
6695 | 415 GaimContact *gaim_contact_new(); |
416 | |
417 /** | |
418 * Adds a new contact to the buddy list. | |
419 * | |
420 * The new contact will be inserted after insert or prepended to the list if | |
421 * node is NULL. | |
422 * | |
423 * @param contact The contact | |
424 * @param group The group to add the contact to | |
425 * @param node The insertion point | |
426 */ | |
427 void gaim_blist_add_contact(GaimContact *contact, GaimGroup *group, GaimBlistNode *node); | |
428 | |
429 /** | |
6965 | 430 * Merges two contacts |
431 * | |
432 * All of the buddies from source will be moved to target | |
433 * | |
434 * @param source The contact to merge | |
435 * @param target The contact to be merged into | |
436 */ | |
437 void gaim_blist_merge_contact(GaimContact *source, GaimContact *target); | |
438 | |
439 /** | |
6695 | 440 * Returns the highest priority buddy for a given contact. |
441 * | |
442 * @param contact The contact | |
443 * @return The highest priority buddy | |
444 */ | |
445 GaimBuddy *gaim_contact_get_priority_buddy(GaimContact *contact); | |
5228 | 446 |
447 /** | |
6755 | 448 * Sets the alias for a contact. |
449 * | |
450 * @param contact The contact | |
451 * @param alias The alias to set, or NULL to unset | |
452 */ | |
453 void gaim_contact_set_alias(GaimContact *contact, const char *alias); | |
454 | |
455 /** | |
456 * Gets the alias for a contact. | |
457 * | |
458 * @param contact The contact | |
459 * @return The alias, or NULL if it is not set. | |
460 */ | |
461 const char *gaim_contact_get_alias(GaimContact *contact); | |
462 | |
463 /** | |
5228 | 464 * Removes a buddy from the buddy list and frees the memory allocated to it. |
465 * | |
466 * @param buddy The buddy to be removed | |
467 */ | |
6695 | 468 void gaim_blist_remove_buddy(GaimBuddy *buddy); |
469 | |
470 /** | |
471 * Removes a contact, and any buddies it contains, and frees the memory | |
472 * allocated to it. | |
473 * | |
474 * @param contact The contact to be removed | |
475 */ | |
476 void gaim_blist_remove_contact(GaimContact *contact); | |
5228 | 477 |
478 /** | |
5234 | 479 * Removes a chat from the buddy list and frees the memory allocated to it. |
480 * | |
481 * @param chat The chat to be removed | |
482 */ | |
6695 | 483 void gaim_blist_remove_chat(GaimBlistChat *chat); |
5234 | 484 |
485 /** | |
5228 | 486 * Removes a group from the buddy list and frees the memory allocated to it and to |
487 * its children | |
488 * | |
489 * @param group The group to be removed | |
490 */ | |
6695 | 491 void gaim_blist_remove_group(GaimGroup *group); |
5228 | 492 |
493 /** | |
494 * Returns the alias of a buddy. | |
495 * | |
496 * @param buddy The buddy whose name will be returned. | |
497 * @return The alias (if set), server alias (if option is set), or NULL. | |
498 */ | |
6695 | 499 const char *gaim_get_buddy_alias_only(GaimBuddy *buddy); |
5228 | 500 |
501 | |
502 /** | |
503 * Returns the correct name to display for a buddy. | |
504 * | |
505 * @param buddy The buddy whose name will be returned. | |
506 * @return The alias (if set), server alias (if option is set), screenname, or "Unknown" | |
507 */ | |
6695 | 508 const char *gaim_get_buddy_alias(GaimBuddy *buddy); |
5228 | 509 |
510 /** | |
6744 | 511 * Returns the correct name to display for a blist chat. |
512 * | |
513 * @param chat The chat whose name will be returned. | |
514 * @return The alias (if set), or first component value. | |
515 */ | |
516 const char *gaim_blist_chat_get_name(GaimBlistChat *chat); | |
517 | |
518 /** | |
5228 | 519 * Finds the buddy struct given a screenname and an account |
520 * | |
6872 | 521 * @param name The buddy's screenname |
5228 | 522 * @param account The account this buddy belongs to |
523 * @return The buddy or NULL if the buddy does not exist | |
524 */ | |
6695 | 525 GaimBuddy *gaim_find_buddy(GaimAccount *account, const char *name); |
6245 | 526 |
527 /** | |
6872 | 528 * Finds the buddy struct given a screenname, an account, and a group |
529 * | |
530 * @param name The buddy's screenname | |
531 * @param account The account this buddy belongs to | |
532 * @param group The group to look in | |
533 * @return The buddy or NULL if the buddy does not exist in the group | |
534 */ | |
535 GaimBuddy *gaim_find_buddy_in_group(GaimAccount *account, const char *name, | |
536 GaimGroup *group); | |
537 | |
538 /** | |
6245 | 539 * Finds all buddies struct given a screenname and an account |
540 * | |
541 * @param name The buddy's screenname | |
542 * @param account The account this buddy belongs to | |
543 * | |
544 * @return A GSList of buddies (which must be freed), or NULL if the buddy doesn't exist | |
545 */ | |
546 GSList *gaim_find_buddies(GaimAccount *account, const char *name); | |
547 | |
5228 | 548 |
549 /** | |
550 * Finds a group by name | |
551 * | |
552 * @param name The groups name | |
553 * @return The group or NULL if the group does not exist | |
554 */ | |
6695 | 555 GaimGroup *gaim_find_group(const char *name); |
556 | |
557 /** | |
558 * Finds a contact | |
559 * | |
560 * @param group The group to look in | |
561 * @param name The name to look for | |
562 * @return The contact or NULL if the contact does not exist | |
563 */ | |
564 GaimContact *gaim_find_contact(GaimGroup *group, const char *name); | |
5228 | 565 |
566 /** | |
6456
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
567 * Finds a chat by name. |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
568 * |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
569 * @param account The chat's account. |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
570 * @param name The chat's name. |
6456
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
571 * |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
572 * @return The chat, or @c NULL if the chat does not exist. |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
573 */ |
6695 | 574 GaimBlistChat *gaim_blist_find_chat(GaimAccount *account, const char *name); |
6456
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
575 |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
576 /** |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
577 * Returns the group of which the chat is a member. |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
578 * |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
579 * @param chat The chat. |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
580 * |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
581 * @return The parent group, or @c NULL if the chat is not in a group. |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
582 */ |
6695 | 583 GaimGroup *gaim_blist_chat_get_group(GaimBlistChat *chat); |
6456
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
584 |
ccfdf9f2cdd1
[gaim-migrate @ 6965]
Christian Hammond <chipx86@chipx86.com>
parents:
6245
diff
changeset
|
585 /** |
5228 | 586 * Returns the group of which the buddy is a member. |
587 * | |
588 * @param buddy The buddy | |
589 * @return The group or NULL if the buddy is not in a group | |
590 */ | |
6695 | 591 GaimGroup *gaim_find_buddys_group(GaimBuddy *buddy); |
5228 | 592 |
593 | |
594 /** | |
595 * Returns a list of accounts that have buddies in this group | |
596 * | |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
597 * @param g The group |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
598 * |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
599 * @return A list of gaim_accounts |
5228 | 600 */ |
6695 | 601 GSList *gaim_group_get_accounts(GaimGroup *g); |
5228 | 602 |
603 /** | |
604 * Determines whether an account owns any buddies in a given group | |
605 * | |
606 * @param g The group to search through. | |
607 * @param account The account. | |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
608 * |
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
609 * @return TRUE if there are any buddies in the group, or FALSE otherwise. |
5228 | 610 */ |
6695 | 611 gboolean gaim_group_on_account(GaimGroup *g, GaimAccount *account); |
5228 | 612 |
613 /** | |
5234 | 614 * Called when an account gets signed on. Tells the UI to update all the |
615 * buddies. | |
616 * | |
617 * @param account The account | |
618 */ | |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5497
diff
changeset
|
619 void gaim_blist_add_account(GaimAccount *account); |
5234 | 620 |
621 | |
622 /** | |
5228 | 623 * Called when an account gets signed off. Sets the presence of all the buddies to 0 |
624 * and tells the UI to update them. | |
625 * | |
6695 | 626 * @param account The account |
5228 | 627 */ |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5497
diff
changeset
|
628 void gaim_blist_remove_account(GaimAccount *account); |
5228 | 629 |
630 | |
631 /** | |
632 * Determines the total size of a group | |
633 * | |
634 * @param group The group | |
635 * @param offline Count buddies in offline accounts | |
636 * @return The number of buddies in the group | |
637 */ | |
6695 | 638 int gaim_blist_get_group_size(GaimGroup *group, gboolean offline); |
5228 | 639 |
640 /** | |
641 * Determines the number of online buddies in a group | |
642 * | |
643 * @param group The group | |
644 * @return The number of online buddies in the group, or 0 if the group is NULL | |
645 */ | |
6695 | 646 int gaim_blist_get_group_online_count(GaimGroup *group); |
5228 | 647 |
648 /*@}*/ | |
649 | |
650 /****************************************************************************************/ | |
651 /** @name Buddy list file management API */ | |
652 /****************************************************************************************/ | |
653 | |
654 /*@{*/ | |
655 /** | |
656 * Saves the buddy list to file | |
657 */ | |
658 void gaim_blist_save(); | |
659 | |
660 /** | |
661 * Parses the toc-style buddy list used in older versions of Gaim and for SSI in toc.c | |
662 * | |
663 * @param account This is the account that the buddies and groups from config will get added to | |
664 * @param config This is the toc-style buddy list data | |
665 */ | |
5563
9eb5b13fd412
[gaim-migrate @ 5965]
Christian Hammond <chipx86@chipx86.com>
parents:
5497
diff
changeset
|
666 void parse_toc_buddy_list(GaimAccount *account, char *config); |
5228 | 667 |
668 | |
669 /** | |
670 * Loads the buddy list from ~/.gaim/blist.xml. | |
671 */ | |
672 void gaim_blist_load(); | |
673 | |
674 /** | |
7060
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
675 * Requests from the user information needed to add a buddy to the |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
676 * buddy list. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
677 * |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
678 * @param account The account the buddy is added to. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
679 * @param username The username of the buddy. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
680 * @param group The name of the group to place the buddy in. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
681 * @param alias The optional alias for the buddy. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
682 */ |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
683 void gaim_blist_request_add_buddy(GaimAccount *account, const char *username, |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
684 const char *group, const char *alias); |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
685 |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
686 /** |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
687 * Requests from the user information needed to add a chat to the |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
688 * buddy list. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
689 * |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
690 * @param account The account the buddy is added to. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
691 * @param group The optional group to add the chat to. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
692 */ |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
693 void gaim_blist_request_add_chat(GaimAccount *account, GaimGroup *group); |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
694 |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
695 /** |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
696 * Requests from the user information needed to add a group to the |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
697 * buddy list. |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
698 */ |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
699 void gaim_blist_request_add_group(void); |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
700 |
9946001989a3
[gaim-migrate @ 7623]
Christian Hammond <chipx86@chipx86.com>
parents:
7035
diff
changeset
|
701 /** |
5228 | 702 * Associates some data with the group in the xml buddy list |
703 * | |
704 * @param g The group the data is associated with | |
705 * @param key The key used to retrieve the data | |
706 * @param value The data to set | |
707 */ | |
6695 | 708 void gaim_group_set_setting(GaimGroup *g, const char *key, const char *value); |
5228 | 709 |
710 /** | |
711 * Retrieves data from the XML buddy list set by gaim_group_set_setting()) | |
712 * | |
713 * @param g The group to retrieve data from | |
714 * @param key The key to retrieve the data with | |
715 * @return The associated data or NULL if no data is associated | |
716 */ | |
6695 | 717 char *gaim_group_get_setting(GaimGroup *g, const char *key); |
5228 | 718 |
5906 | 719 /** |
720 * Associates some data with the chat in the xml buddy list | |
721 * | |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
722 * @param c The chat the data is associated with |
5906 | 723 * @param key The key used to retrieve the data |
724 * @param value The data to set | |
725 */ | |
6695 | 726 void gaim_blist_chat_set_setting(GaimBlistChat *c, const char *key, const char *value); |
5906 | 727 |
728 /** | |
6735 | 729 * Retrieves data from the XML buddy list set by gaim_blist_chat_set_setting()) |
5906 | 730 * |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
731 * @param c The chat to retrieve data from |
5906 | 732 * @param key The key to retrieve the data with |
6720
41120df7ed94
[gaim-migrate @ 7247]
Christian Hammond <chipx86@chipx86.com>
parents:
6695
diff
changeset
|
733 * |
5906 | 734 * @return The associated data or NULL if no data is associated |
735 */ | |
6695 | 736 char *gaim_blist_chat_get_setting(GaimBlistChat *c, const char *key); |
5228 | 737 |
738 /** | |
739 * Associates some data with the buddy in the xml buddy list | |
740 * | |
741 * @param b The buddy the data is associated with | |
742 * @param key The key used to retrieve the data | |
743 * @param value The data to set | |
744 */ | |
6695 | 745 void gaim_buddy_set_setting(GaimBuddy *b, const char *key, const char *value); |
5228 | 746 |
747 /** | |
748 * Retrieves data from the XML buddy list set by gaim_buddy_set_setting()) | |
749 * | |
750 * @param b The buddy to retrieve data from | |
751 * @param key The key to retrieve the data with | |
752 * @return The associated data or NULL if no data is associated | |
753 */ | |
6695 | 754 char *gaim_buddy_get_setting(GaimBuddy *b, const char *key); |
5228 | 755 |
756 /*@}*/ | |
757 | |
758 /**************************************************************************/ | |
759 /** @name UI Registration Functions */ | |
760 /**************************************************************************/ | |
761 /*@{*/ | |
762 | |
763 /** | |
764 * Sets the UI operations structure to be used for the buddy list. | |
765 * | |
766 * @param ops The ops struct. | |
767 */ | |
7035
feb3d21a7794
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6965
diff
changeset
|
768 void gaim_blist_set_ui_ops(struct gaim_blist_ui_ops *ops); |
5228 | 769 |
770 /** | |
771 * Returns the UI operations structure to be used for the buddy list. | |
772 * | |
773 * @return The UI operations structure. | |
774 */ | |
7035
feb3d21a7794
[gaim-migrate @ 7598]
Christian Hammond <chipx86@chipx86.com>
parents:
6965
diff
changeset
|
775 struct gaim_blist_ui_ops *gaim_blist_get_ui_ops(void); |
5228 | 776 |
777 /*@}*/ | |
778 | |
6485
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
779 /**************************************************************************/ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
780 /** @name Buddy List Subsystem */ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
781 /**************************************************************************/ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
782 /*@{*/ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
783 |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
784 /** |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
785 * Returns the handle for the buddy list subsystem. |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
786 * |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
787 * @return The buddy list subsystem handle. |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
788 */ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
789 void *gaim_blist_get_handle(void); |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
790 |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
791 /** |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
792 * Initializes the buddy list subsystem. |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
793 */ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
794 void gaim_blist_init(void); |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
795 |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
796 /** |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
797 * Uninitializes the buddy list subsystem. |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
798 */ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
799 void gaim_blist_uninit(void); |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
800 |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
801 /*@}*/ |
70d5122bc3ff
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
6456
diff
changeset
|
802 |
5944
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
803 #ifdef __cplusplus |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
804 } |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
805 #endif |
158196b2db19
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5906
diff
changeset
|
806 |
6695 | 807 #endif /* _BLIST_H_ */ |