Mercurial > pidgin.yaz
diff src/blist.h @ 6755:ea289c6f2382
[gaim-migrate @ 7287]
fix a bug with removing buddies, and the start of support for aliasing contacts
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 05 Sep 2003 17:04:39 +0000 |
parents | a781689ca455 |
children | 549a0bbbf73d |
line wrap: on
line diff
--- a/src/blist.h Fri Sep 05 16:53:18 2003 +0000 +++ b/src/blist.h Fri Sep 05 17:04:39 2003 +0000 @@ -105,10 +105,11 @@ * A contact. This contains everything Gaim will ever need to know about a contact. */ struct _GaimContact { - GaimBlistNode node; /**< The node that this contact inherits from. */ - int totalsize; /**< The number of buddies in this contact */ - 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 */ + GaimBlistNode node; /**< The node that this contact inherits from. */ + char *alias; /**< The user-set alias of the contact */ + int totalsize; /**< The number of buddies in this contact */ + 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 */ }; @@ -408,6 +409,22 @@ GaimBuddy *gaim_contact_get_priority_buddy(GaimContact *contact); /** + * Sets the alias for a contact. + * + * @param contact The contact + * @param alias The alias to set, or NULL to unset + */ +void gaim_contact_set_alias(GaimContact *contact, const char *alias); + +/** + * Gets the alias for a contact. + * + * @param contact The contact + * @return The alias, or NULL if it is not set. + */ +const char *gaim_contact_get_alias(GaimContact *contact); + +/** * Removes a buddy from the buddy list and frees the memory allocated to it. * * @param buddy The buddy to be removed