Mercurial > pidgin
diff libpurple/protocols/yahoo/yahoo_friend.c @ 27538:fa827f6f990f
Add support for receiving contact details from buddies.
Also, show some contact details (e.g. phone number) in the tooltip and in
'Get Info' when available.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 14 Jul 2009 21:08:56 +0000 |
parents | 1a971a264c3e |
children | 908be3822215 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_friend.c Tue Jul 14 19:55:40 2009 +0000 +++ b/libpurple/protocols/yahoo/yahoo_friend.c Tue Jul 14 21:08:56 2009 +0000 @@ -27,6 +27,7 @@ #include "debug.h" #include "yahoo_friend.h" +#include "yahoo_aliases.h" static YahooFriend *yahoo_friend_new(void) { @@ -124,13 +125,13 @@ void yahoo_friend_set_alias_id(YahooFriend *f, const char *alias_id) { - g_free(f->alias_id); - f->alias_id = g_strdup(alias_id); + g_free(f->ypd.id); + f->ypd.id = g_strdup(alias_id); } const char *yahoo_friend_get_alias_id(YahooFriend *f) { - return f->alias_id; + return f->ypd.id; } void yahoo_friend_free(gpointer p) @@ -139,7 +140,7 @@ g_free(f->msg); g_free(f->game); g_free(f->ip); - g_free(f->alias_id); + yahoo_personal_details_reset(&f->ypd, TRUE); g_free(f); }