Mercurial > pidgin.yaz
comparison libpurple/notify.h @ 32368:6283c0f2b02f
Change PurpleNotifyUserInfo->user_info_entries from a GList to a GQueue.
This makes appending fast.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 22 Aug 2011 04:14:16 +0000 |
parents | 99ca503ea087 |
children | 0cc718e10344 |
comparison
equal
deleted
inserted
replaced
32367:a686269689fe | 32368:6283c0f2b02f |
---|---|
437 | 437 |
438 /** | 438 /** |
439 * Retrieve the array of PurpleNotifyUserInfoEntry objects from a | 439 * Retrieve the array of PurpleNotifyUserInfoEntry objects from a |
440 * PurpleNotifyUserInfo | 440 * PurpleNotifyUserInfo |
441 * | 441 * |
442 * This GList may be manipulated directly with normal GList functions such | 442 * This GQueue may be manipulated directly with normal GQueue functions such |
443 * as g_list_insert(). Only PurpleNotifyUserInfoEntry are allowed in the | 443 * as g_queue_push_tail(). Only PurpleNotifyUserInfoEntry are allowed in the |
444 * list. If a PurpleNotifyUserInfoEntry item is added to the list, it | 444 * queue. If a PurpleNotifyUserInfoEntry item is added to the queue, it |
445 * should not be g_free()'d by the caller; PurpleNotifyUserInfo will g_free | 445 * should not be freed by the caller; PurpleNotifyUserInfo will free it when |
446 * it when destroyed. | 446 * destroyed. |
447 * | 447 * |
448 * To remove a PurpleNotifyUserInfoEntry, use | 448 * To remove a PurpleNotifyUserInfoEntry, use |
449 * purple_notify_user_info_remove_entry(). Do not use the GList directly. | 449 * purple_notify_user_info_remove_entry(). Do not use the GQueue directly. |
450 * | 450 * |
451 * @param user_info The PurpleNotifyUserInfo | 451 * @param user_info The PurpleNotifyUserInfo |
452 * | 452 * |
453 * @constreturn A GList of PurpleNotifyUserInfoEntry objects | 453 * @constreturn A GQueue of PurpleNotifyUserInfoEntry objects. |
454 */ | 454 */ |
455 GList *purple_notify_user_info_get_entries(PurpleNotifyUserInfo *user_info); | 455 GQueue *purple_notify_user_info_get_entries(PurpleNotifyUserInfo *user_info); |
456 | 456 |
457 /** | 457 /** |
458 * Create a textual representation of a PurpleNotifyUserInfo, separating | 458 * Create a textual representation of a PurpleNotifyUserInfo, separating |
459 * entries with newline | 459 * entries with newline |
460 * | 460 * |