libpurple/protocols/myspace/myspace.c

branch
soc.2013.gobjectification.plugins
changeset 36545
23b59a16c808
parent 36544
1bf8b6ef5aea
child 36574
e9b59dd16117
equal deleted inserted replaced
36544:1bf8b6ef5aea 36545:23b59a16c808
1298 1298
1299 our_info = g_strdup_printf("Libpurple %d.%d.%d - msimprpl %s", 1299 our_info = g_strdup_printf("Libpurple %d.%d.%d - msimprpl %s",
1300 PURPLE_MAJOR_VERSION, 1300 PURPLE_MAJOR_VERSION,
1301 PURPLE_MINOR_VERSION, 1301 PURPLE_MINOR_VERSION,
1302 PURPLE_MICRO_VERSION, 1302 PURPLE_MICRO_VERSION,
1303 MSIM_PRPL_VERSION_STRING); 1303 MSIM_PROTOCOL_VERSION_STRING);
1304 1304
1305 ret = msim_send_bm(session, username, our_info, MSIM_BM_UNOFFICIAL_CLIENT); 1305 ret = msim_send_bm(session, username, our_info, MSIM_BM_UNOFFICIAL_CLIENT);
1306 1306
1307 return ret; 1307 return ret;
1308 } 1308 }
1437 status_code); 1437 status_code);
1438 msim_unrecognized(session, NULL, unrecognized_msg); 1438 msim_unrecognized(session, NULL, unrecognized_msg);
1439 g_free(unrecognized_msg); 1439 g_free(unrecognized_msg);
1440 } 1440 }
1441 1441
1442 purple_prpl_got_user_status(session->account, username, purple_primitive_get_id_from_type(purple_status_code), NULL); 1442 purple_protocol_got_user_status(session->account, username, purple_primitive_get_id_from_type(purple_status_code), NULL);
1443 1443
1444 if (status_code == MSIM_STATUS_CODE_IDLE) { 1444 if (status_code == MSIM_STATUS_CODE_IDLE) {
1445 purple_debug_info("msim", "msim_status: got idle: %s\n", username); 1445 purple_debug_info("msim", "msim_status: got idle: %s\n", username);
1446 purple_prpl_got_user_idle(session->account, username, TRUE, 0); 1446 purple_protocol_got_user_idle(session->account, username, TRUE, 0);
1447 } else { 1447 } else {
1448 /* All other statuses indicate going back to non-idle. */ 1448 /* All other statuses indicate going back to non-idle. */
1449 purple_prpl_got_user_idle(session->account, username, FALSE, 0); 1449 purple_protocol_got_user_idle(session->account, username, FALSE, 0);
1450 } 1450 }
1451 1451
1452 #ifdef MSIM_SEND_CLIENT_VERSION 1452 #ifdef MSIM_SEND_CLIENT_VERSION
1453 if (status_code == MSIM_STATUS_CODE_ONLINE) { 1453 if (status_code == MSIM_STATUS_CODE_ONLINE) {
1454 /* Secretly whisper to unofficial clients our own version as they come online */ 1454 /* Secretly whisper to unofficial clients our own version as they come online */
3154 NULL, /* roomlist_expand_category */ 3154 NULL, /* roomlist_expand_category */
3155 NULL, /* can_receive_file */ 3155 NULL, /* can_receive_file */
3156 NULL, /* send_file */ 3156 NULL, /* send_file */
3157 NULL, /* new_xfer */ 3157 NULL, /* new_xfer */
3158 msim_offline_message, /* offline_message */ 3158 msim_offline_message, /* offline_message */
3159 NULL, /* whiteboard_prpl_ops */ 3159 NULL, /* whiteboard_protocol_ops */
3160 msim_send_really_raw, /* send_raw */ 3160 msim_send_really_raw, /* send_raw */
3161 NULL, /* roomlist_room_serialize */ 3161 NULL, /* roomlist_room_serialize */
3162 NULL, /* unregister_user */ 3162 NULL, /* unregister_user */
3163 msim_send_attention, /* send_attention */ 3163 msim_send_attention, /* send_attention */
3164 msim_attention_types, /* attention_types */ 3164 msim_attention_types, /* attention_types */
3465 plugin_query(GError **error) 3465 plugin_query(GError **error)
3466 { 3466 {
3467 return purple_plugin_info_new( 3467 return purple_plugin_info_new(
3468 "id", "prpl-myspace", 3468 "id", "prpl-myspace",
3469 "name", "MySpaceIM", 3469 "name", "MySpaceIM",
3470 "version", MSIM_PRPL_VERSION_STRING, 3470 "version", MSIM_PROTOCOL_VERSION_STRING,
3471 "category", "Protocol", 3471 "category", "Protocol",
3472 "summary", "MySpaceIM Protocol Plugin", 3472 "summary", "MySpaceIM Protocol Plugin",
3473 "description", "MySpaceIM Protocol Plugin", 3473 "description", "MySpaceIM Protocol Plugin",
3474 "author", "Jeff Connelly <jeff2@soc.pidgin.im>", 3474 "author", "Jeff Connelly <jeff2@soc.pidgin.im>",
3475 "website", "https://developer.pidgin.im/wiki/MySpaceIM/", 3475 "website", "https://developer.pidgin.im/wiki/MySpaceIM/",

mercurial