Mercurial > pidgin.yaz
diff src/protocols/yahoo/yahoo_friend.c @ 9281:adde46ad65e9
[gaim-migrate @ 10084]
This keeps track of IP addresses that other clients send us, and displays
them in the Get Info dialog. Eventually we'll want to do other stuff with
them, probably.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Mon, 14 Jun 2004 07:05:10 +0000 |
parents | 1eaa4d8dcf26 |
children | fe7db2ea4a1e |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_friend.c Mon Jun 14 06:09:26 2004 +0000 +++ b/src/protocols/yahoo/yahoo_friend.c Mon Jun 14 07:05:10 2004 +0000 @@ -71,6 +71,18 @@ return f; } +void yahoo_friend_set_ip(YahooFriend *f, const char *ip) +{ + if (f->ip) + g_free(f->ip); + f->ip = g_strdup(ip); +} + +const char *yahoo_friend_get_ip(YahooFriend *f) +{ + return f->ip; +} + void yahoo_friend_free(gpointer p) { YahooFriend *f = p;