Mercurial > pidgin.yaz
diff src/blist.h @ 10378:28135f8c226d
[gaim-migrate @ 11603]
I call this lazy contact priority computation.
Be careful not to use contact->priority directly, unless
you know what you're doing.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Wed, 15 Dec 2004 02:29:58 +0000 |
parents | d962fc7778f1 |
children | f7f06cb69d5e |
line wrap: on
line diff
--- a/src/blist.h Wed Dec 15 02:17:59 2004 +0000 +++ b/src/blist.h Wed Dec 15 02:29:58 2004 +0000 @@ -131,6 +131,7 @@ int currentsize; /**< The number of buddies in this contact corresponding to online accounts */ int online; /**< The number of buddies in this contact who are currently online */ GaimBuddy *priority; /**< The "top" buddy for this contact */ + gboolean priority_valid; /**< Is priority valid? */ }; @@ -511,14 +512,14 @@ */ gboolean gaim_contact_on_account(GaimContact *contact, GaimAccount *account); - /** - * Re-calculates the priority buddy for a contact. + * Invalidates the priority buddy so that the next call to + * gaim_contact_get_priority_buddy recomputes it. * - * @param contact The contact. + * @param contact The contact + * @return The highest priority buddy */ -void gaim_contact_compute_priority_buddy(GaimContact *contact); - +void gaim_contact_invalidate_priority_buddy(GaimContact *contact); /** * Removes a buddy from the buddy list and frees the memory allocated to it. *