diff libpurple/protocols/myspace/zap.c @ 31981:750ab90748a5

Convert myspace prpl to use accessor functions purple_connection_get_protocol_data() and purple_connection_set_protocol_data().
author andrew.victor@mxit.com
date Mon, 29 Aug 2011 22:08:01 +0000
parents 5fbcfcbd6551
children 2ec94166be43
line wrap: on
line diff
--- a/libpurple/protocols/myspace/zap.c	Mon Aug 29 21:52:24 2011 +0000
+++ b/libpurple/protocols/myspace/zap.c	Mon Aug 29 22:08:01 2011 +0000
@@ -132,7 +132,7 @@
 	PurpleAttentionType *attn;
 	PurpleBuddy *buddy;
 
-	session = (MsimSession *)gc->proto_data;
+	session = purple_connection_get_protocol_data(gc);
 
 	/* Look for this attention type, by the code index given. */
 	types = msim_attention_types(gc->account);
@@ -175,7 +175,7 @@
 	/* Find the session */
 	account = purple_buddy_get_account(buddy);
 	gc = purple_account_get_connection(account);
-	session = (MsimSession *)gc->proto_data;
+	session = purple_connection_get_protocol_data(gc);
 
 	zap = GPOINTER_TO_INT(zap_num_ptr);