Mercurial > pidgin
comparison libpurple/protocols/myspace/zap.c @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | 2ec94166be43 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
130 GList *types; | 130 GList *types; |
131 MsimSession *session; | 131 MsimSession *session; |
132 PurpleAttentionType *attn; | 132 PurpleAttentionType *attn; |
133 PurpleBuddy *buddy; | 133 PurpleBuddy *buddy; |
134 | 134 |
135 session = (MsimSession *)gc->proto_data; | 135 session = purple_connection_get_protocol_data(gc); |
136 | 136 |
137 /* Look for this attention type, by the code index given. */ | 137 /* Look for this attention type, by the code index given. */ |
138 types = msim_attention_types(gc->account); | 138 types = msim_attention_types(purple_connection_get_account(gc)); |
139 attn = (PurpleAttentionType *)g_list_nth_data(types, code); | 139 attn = (PurpleAttentionType *)g_list_nth_data(types, code); |
140 | 140 |
141 if (!attn) { | 141 if (!attn) { |
142 purple_debug_info("msim_send_attention", "got invalid zap code %d\n", code); | 142 purple_debug_info("msim_send_attention", "got invalid zap code %d\n", code); |
143 return FALSE; | 143 return FALSE; |
173 buddy = (PurpleBuddy *)node; | 173 buddy = (PurpleBuddy *)node; |
174 | 174 |
175 /* Find the session */ | 175 /* Find the session */ |
176 account = purple_buddy_get_account(buddy); | 176 account = purple_buddy_get_account(buddy); |
177 gc = purple_account_get_connection(account); | 177 gc = purple_account_get_connection(account); |
178 session = (MsimSession *)gc->proto_data; | 178 session = purple_connection_get_protocol_data(gc); |
179 | 179 |
180 zap = GPOINTER_TO_INT(zap_num_ptr); | 180 zap = GPOINTER_TO_INT(zap_num_ptr); |
181 | 181 |
182 purple_prpl_send_attention(session->gc, purple_buddy_get_name(buddy), zap); | 182 purple_prpl_send_attention(session->gc, purple_buddy_get_name(buddy), zap); |
183 } | 183 } |