Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
9280:2104c1039626 | 9281:adde46ad65e9 |
---|---|
69 } | 69 } |
70 | 70 |
71 return f; | 71 return f; |
72 } | 72 } |
73 | 73 |
74 void yahoo_friend_set_ip(YahooFriend *f, const char *ip) | |
75 { | |
76 if (f->ip) | |
77 g_free(f->ip); | |
78 f->ip = g_strdup(ip); | |
79 } | |
80 | |
81 const char *yahoo_friend_get_ip(YahooFriend *f) | |
82 { | |
83 return f->ip; | |
84 } | |
85 | |
74 void yahoo_friend_free(gpointer p) | 86 void yahoo_friend_free(gpointer p) |
75 { | 87 { |
76 YahooFriend *f = p; | 88 YahooFriend *f = p; |
77 if (f->msg) | 89 if (f->msg) |
78 g_free(f->msg); | 90 g_free(f->msg); |