# HG changeset patch # User Luke Schierer # Date 1095545687 0 # Node ID e6e68b9db19b0e048f85b06ff5d4e367cb5e4bf3 # Parent 0ddc38f8db4a340414663840489750608d75e956 [gaim-migrate @ 10996] " Adds gaim_buddy_get_account and gaim_buddy_get_name to blist.c and blist.h" --Dave West committer: Tailor Script diff -r 0ddc38f8db4a -r e6e68b9db19b src/blist.c --- 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) { diff -r 0ddc38f8db4a -r e6e68b9db19b src/blist.h --- 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.