libpurple/protocols/yahoo/yahoo_friend.c

branch
soc.2008.yahoo
changeset 23681
f8841c9d3e39
parent 22980
b5c23c9bbd24
child 23689
c81cf58f5404
equal deleted inserted replaced
23680:619bbd7ae401 23681:f8841c9d3e39
33 YahooFriend *ret; 33 YahooFriend *ret;
34 34
35 ret = g_new0(YahooFriend, 1); 35 ret = g_new0(YahooFriend, 1);
36 ret->status = YAHOO_STATUS_OFFLINE; 36 ret->status = YAHOO_STATUS_OFFLINE;
37 ret->presence = YAHOO_PRESENCE_DEFAULT; 37 ret->presence = YAHOO_PRESENCE_DEFAULT;
38 ret->p2p_packet_sent = 0;
39 ret->p2p_status = NOT_CONNECTED;
38 40
39 return ret; 41 return ret;
40 } 42 }
41 43
42 YahooFriend *yahoo_friend_find(PurpleConnection *gc, const char *name) 44 YahooFriend *yahoo_friend_find(PurpleConnection *gc, const char *name)
262 301, "319", 303, "319"); 264 301, "319", 303, "319");
263 265
264 yahoo_packet_send_and_free(pkt, yd); 266 yahoo_packet_send_and_free(pkt, yd);
265 } 267 }
266 } 268 }
269
270 void yahoo_friend_set_p2p_status(YahooFriend *f, YahooP2PStatus p2p_status)
271 {
272 f->p2p_status = p2p_status;
273 }
274
275 YahooP2PStatus yahoo_friend_get_p2p_status(YahooFriend *f)
276 {
277 return f->p2p_status;
278 }

mercurial