Mercurial > pidgin.yaz
changeset 10037:e6e68b9db19b
[gaim-migrate @ 10996]
" Adds gaim_buddy_get_account and gaim_buddy_get_name to
blist.c and blist.h" --Dave West
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 18 Sep 2004 22:14:47 +0000 |
parents | 0ddc38f8db4a |
children | eb8ccdd6f5f2 |
files | src/blist.c src/blist.h |
diffstat | 2 files changed, 34 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/blist.c Sat Sep 18 21:55:37 2004 +0000 +++ b/src/blist.c Sat Sep 18 22:14:47 2004 +0000 @@ -639,6 +639,22 @@ gaim_blist_update_buddy_icon(buddy); } +GaimAccount * +gaim_buddy_get_account(const GaimBuddy *buddy) +{ + g_return_val_if_fail(buddy != NULL, NULL); + + return buddy->account; +} + +const char * +gaim_buddy_get_name(const GaimBuddy *buddy) +{ + g_return_val_if_fail(buddy != NULL, NULL); + + return buddy->name; +} + GaimBuddyIcon * gaim_buddy_get_icon(const GaimBuddy *buddy) {
--- a/src/blist.h Sat Sep 18 21:55:37 2004 +0000 +++ b/src/blist.h Sat Sep 18 22:14:47 2004 +0000 @@ -378,6 +378,24 @@ void gaim_buddy_set_icon(GaimBuddy *buddy, GaimBuddyIcon *icon); /** + * Returns a buddy's account. + * + * @param buddy The buddy. + * + * @return The account + */ +GaimAccount *gaim_buddy_get_account(const GaimBuddy *buddy); + +/** + * Returns a buddy's name + * + * @param buddy The buddy. + * + * @return The name. + */ +const char *gaim_buddy_get_name(const GaimBuddy *buddy); + +/** * Returns a buddy's icon. * * @param buddy The buddy.