libpurple/purpleprotocolserver.c

changeset 40725
447c01698e1c
parent 40708
53a26c29d26c
child 41024
a2ad2d034162
equal deleted inserted replaced
40724:b317bb7479e5 40725:447c01698e1c
204 PurpleProtocolServerInterface *iface = NULL; 204 PurpleProtocolServerInterface *iface = NULL;
205 205
206 g_return_if_fail(PURPLE_IS_PROTOCOL_SERVER(protocol_server)); 206 g_return_if_fail(PURPLE_IS_PROTOCOL_SERVER(protocol_server));
207 g_return_if_fail(PURPLE_IS_CONNECTION(connection)); 207 g_return_if_fail(PURPLE_IS_CONNECTION(connection));
208 g_return_if_fail(PURPLE_IS_BUDDY(buddy)); 208 g_return_if_fail(PURPLE_IS_BUDDY(buddy));
209 g_return_if_fail(PURPLE_IS_GROUP(group));
210 209
211 iface = PURPLE_PROTOCOL_SERVER_GET_IFACE(protocol_server); 210 iface = PURPLE_PROTOCOL_SERVER_GET_IFACE(protocol_server);
212 if(iface != NULL && iface->remove_buddy != NULL) { 211 if(iface != NULL && iface->remove_buddy != NULL) {
213 iface->remove_buddy(protocol_server, connection, buddy, group); 212 iface->remove_buddy(protocol_server, connection, buddy, group);
214 } 213 }
331 { 330 {
332 PurpleProtocolServerInterface *iface = NULL; 331 PurpleProtocolServerInterface *iface = NULL;
333 332
334 g_return_if_fail(PURPLE_IS_PROTOCOL_SERVER(protocol_server)); 333 g_return_if_fail(PURPLE_IS_PROTOCOL_SERVER(protocol_server));
335 g_return_if_fail(PURPLE_IS_CONNECTION(connection)); 334 g_return_if_fail(PURPLE_IS_CONNECTION(connection));
336 g_return_if_fail(PURPLE_IS_IMAGE(img));
337 335
338 iface = PURPLE_PROTOCOL_SERVER_GET_IFACE(protocol_server); 336 iface = PURPLE_PROTOCOL_SERVER_GET_IFACE(protocol_server);
339 if(iface != NULL && iface->set_buddy_icon != NULL) { 337 if(iface != NULL && iface->set_buddy_icon != NULL) {
340 iface->set_buddy_icon(protocol_server, connection, img); 338 iface->set_buddy_icon(protocol_server, connection, img);
341 } 339 }

mercurial