Mercurial > pidgin
comparison libpurple/blist.h @ 27480:cbee8aecc90a
Free the buddy list data some more at shutdown and some deprecations.
I think these deprecations are reasonable. Basically, purple_blist_init
should create a PurpleBuddyList*, so each UI doesn't need to do that.
The UI data for the PurpleBuddyList is more tightly coupled with
the PurpleBuddyList and purple_blist_destroy is called in
purple_blist_uninit (and is fully cleaned up now).
As libpurple works currently, I believe it's not really possible to have
multiple PurpleBuddyLists around (blist.c relies on a single global
variable) and when it was discussed on the mailing list a few months ago,
nobody was using it as such.
Refs #9253 (going to milestone 3.0.0 it).
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 12 Jul 2009 02:55:36 +0000 |
parents | 7c1ecd0727db |
children | 14ce47859540 |
comparison
equal
deleted
inserted
replaced
27479:5345dfe48272 | 27480:cbee8aecc90a |
---|---|
233 | 233 |
234 /** | 234 /** |
235 * Creates a new buddy list | 235 * Creates a new buddy list |
236 * | 236 * |
237 * @return The new buddy list. | 237 * @return The new buddy list. |
238 * @deprecated In 3.0.0, this will be handled by purple_blist_init() | |
238 */ | 239 */ |
239 PurpleBuddyList *purple_blist_new(void); | 240 PurpleBuddyList *purple_blist_new(void); |
240 | 241 |
241 /** | 242 /** |
242 * Sets the main buddy list. | 243 * Sets the main buddy list. |
243 * | 244 * |
244 * @param blist The buddy list you want to use. | 245 * @param blist The buddy list you want to use. |
246 * @deprecated In 3.0.0, this will be handled by purple_blist_init() | |
245 */ | 247 */ |
246 void purple_set_blist(PurpleBuddyList *blist); | 248 void purple_set_blist(PurpleBuddyList *blist); |
247 | 249 |
248 /** | 250 /** |
249 * Returns the main buddy list. | 251 * Returns the main buddy list. |
381 void purple_blist_show(void); | 383 void purple_blist_show(void); |
382 | 384 |
383 | 385 |
384 /** | 386 /** |
385 * Destroys the buddy list window. | 387 * Destroys the buddy list window. |
388 * | |
389 * @deprecated The UI is responsible for cleaning up the | |
390 * PurpleBuddyList->ui_data. purple_blist_uninit() will free the | |
391 * PurpleBuddyList* itself. | |
386 */ | 392 */ |
387 void purple_blist_destroy(void); | 393 void purple_blist_destroy(void); |
388 | 394 |
389 /** | 395 /** |
390 * Hides or unhides the buddy list. | 396 * Hides or unhides the buddy list. |