comparison libpurple/protocols/jabber/buddy.c @ 31995:3caef255ad47

Convert jabber prpl to use accessor functions purple_connection_get_protocol_data() and purple_connection_set_protocol_data().
author andrew.victor@mxit.com
date Tue, 30 Aug 2011 19:11:26 +0000
parents 0cc718e10344
children 2ec94166be43
comparison
equal deleted inserted replaced
31994:cf796628b2c0 31995:3caef255ad47
555 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img) 555 void jabber_set_buddy_icon(PurpleConnection *gc, PurpleStoredImage *img)
556 { 556 {
557 PurpleAccount *account = purple_connection_get_account(gc); 557 PurpleAccount *account = purple_connection_get_account(gc);
558 558
559 /* Publish the avatar as specified in XEP-0084 */ 559 /* Publish the avatar as specified in XEP-0084 */
560 jabber_avatar_set(gc->proto_data, img); 560 jabber_avatar_set(purple_connection_get_protocol_data(gc), img);
561 /* Set the image in our vCard */ 561 /* Set the image in our vCard */
562 jabber_set_info(gc, purple_account_get_user_info(account)); 562 jabber_set_info(gc, purple_account_get_user_info(account));
563 563
564 /* TODO: Fake image to ourselves, since a number of servers do not echo 564 /* TODO: Fake image to ourselves, since a number of servers do not echo
565 * back our presence to us. To do this without uselessly copying the data 565 * back our presence to us. To do this without uselessly copying the data