Mercurial > pidgin
diff libpurple/protocols/yahoo/yahoo_friend.c @ 25059:f16aba67b685
Sending of p2p packet, providing peer with our IP address to make a connection to us.
author | Sulabh Mahajan <sulabh@soc.pidgin.im> |
---|---|
date | Fri, 27 Jun 2008 13:34:44 +0000 |
parents | 0b11895cc564 |
children | fa462a39cd47 |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_friend.c Sat Jun 21 14:34:38 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo_friend.c Fri Jun 27 13:34:44 2008 +0000 @@ -35,6 +35,8 @@ ret = g_new0(YahooFriend, 1); ret->status = YAHOO_STATUS_OFFLINE; ret->presence = YAHOO_PRESENCE_DEFAULT; + ret->p2p_packet_sent = 0; + ret->p2p_status = NOT_CONNECTED; return ret; } @@ -264,3 +266,13 @@ yahoo_packet_send_and_free(pkt, yd); } } + +void yahoo_friend_set_p2p_status(YahooFriend *f, YahooP2PStatus p2p_status) +{ + f->p2p_status = p2p_status; +} + +YahooP2PStatus yahoo_friend_get_p2p_status(YahooFriend *f) +{ + return f->p2p_status; +}