merge of '82713f0be6da6aab1290729c476d7dda7b16bc8d'

Sat, 03 Sep 2011 11:51:24 +0000

author
Andrew Victor <andrew.victor@mxit.com>
date
Sat, 03 Sep 2011 11:51:24 +0000
changeset 32329
96b8d2ea2a77
parent 32314
82713f0be6da (current diff)
parent 32328
6f7a0ada3ef1 (diff)
child 32330
e986fbe117b5

merge of '82713f0be6da6aab1290729c476d7dda7b16bc8d'
and '6f7a0ada3ef19f247ae1bfd9994283d92d79a7da'

--- a/libpurple/protocols/bonjour/mdns_win32.c	Fri Sep 02 21:15:24 2011 +0000
+++ b/libpurple/protocols/bonjour/mdns_win32.c	Sat Sep 03 11:51:24 2011 +0000
@@ -177,7 +177,7 @@
 	args->resolver_query = NULL;
 
 	if ((pb = purple_find_buddy(args->account, args->res_data->name))) {
-		if (pb->proto_data != args->bb) {
+		if (purple_buddy_get_protocol_data(pb) != args->bb) {
 			purple_debug_error("bonjour", "Found purple buddy for %s not matching bonjour buddy record.",
 				args->res_data->name);
 			goto cleanup;
@@ -348,7 +348,7 @@
 
 				/* Is there an existing buddy? */
 				if ((pb = purple_find_buddy(account, serviceName)))
-					bb = pb->proto_data;
+					bb = purple_buddy_get_protocol_data(pb);
 				/* Is there a pending buddy? */
 				else {
 					while (tmp) {
@@ -368,7 +368,7 @@
 					if (pb == NULL)
 						pending_buddies = g_slist_prepend(pending_buddies, bb);
 					else
-						pb->proto_data = bb;
+						purple_buddy_set_protocol_data(pb, bb);
 				}
 
 				rd = g_new0(Win32SvcResolverData, 1);
@@ -408,7 +408,7 @@
 			GSList *l;
 			/* There may be multiple presences, we should only get rid of this one */
 			Win32SvcResolverData *rd_search;
-			BonjourBuddy *bb = pb->proto_data;
+			BonjourBuddy *bb = purple_buddy_get_protocol_data(pb);
 			Win32BuddyImplData *idata;
 
 			g_return_if_fail(bb != NULL);
--- a/libpurple/protocols/myspace/user.c	Fri Sep 02 21:15:24 2011 +0000
+++ b/libpurple/protocols/myspace/user.c	Sat Sep 03 11:51:24 2011 +0000
@@ -412,7 +412,7 @@
  *
  * @param session
  * @param msg The user information reply, with any amount of information.
- * @param user The structure to save to, or NULL to save in PurpleBuddy->proto_data.
+ * @param user The structure to save to, or NULL to save in PurpleBuddy's protocol_data.
  *
  * Variable information is saved to the passed MsimUser structure. Permanent
  * information (UserID) is stored in the blist node of the buddy list (and

mercurial