Mercurial > pidgin
comparison libpurple/protocols/mxit/multimx.c @ 32672:3828a61c44da
A boring and large patch so I can merge heads.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 23 Dec 2011 08:21:58 +0000 |
parents | 4bf9b7cf7810 |
children |
comparison
equal
deleted
inserted
replaced
32671:0e69949b3e61 | 32672:3828a61c44da |
---|---|
456 * @param gc The connection object | 456 * @param gc The connection object |
457 * @param components The list of chat configuration values | 457 * @param components The list of chat configuration values |
458 */ | 458 */ |
459 void mxit_chat_join(PurpleConnection *gc, GHashTable *components) | 459 void mxit_chat_join(PurpleConnection *gc, GHashTable *components) |
460 { | 460 { |
461 struct MXitSession* session = (struct MXitSession*) gc->proto_data; | 461 struct MXitSession* session = purple_connection_get_protocol_data(gc); |
462 const char* roomname = NULL; | 462 const char* roomname = NULL; |
463 struct multimx* multimx = NULL; | 463 struct multimx* multimx = NULL; |
464 | 464 |
465 purple_debug_info(MXIT_PLUGIN_ID, "mxit_chat_join\n"); | 465 purple_debug_info(MXIT_PLUGIN_ID, "mxit_chat_join\n"); |
466 | 466 |
498 * @param gc The connection object | 498 * @param gc The connection object |
499 * @param components The list of chat configuration values | 499 * @param components The list of chat configuration values |
500 */ | 500 */ |
501 void mxit_chat_reject(PurpleConnection *gc, GHashTable* components) | 501 void mxit_chat_reject(PurpleConnection *gc, GHashTable* components) |
502 { | 502 { |
503 struct MXitSession* session = (struct MXitSession*) gc->proto_data; | 503 struct MXitSession* session = purple_connection_get_protocol_data(gc); |
504 const char* roomname = NULL; | 504 const char* roomname = NULL; |
505 struct multimx* multimx = NULL; | 505 struct multimx* multimx = NULL; |
506 | 506 |
507 purple_debug_info(MXIT_PLUGIN_ID, "mxit_chat_reject\n"); | 507 purple_debug_info(MXIT_PLUGIN_ID, "mxit_chat_reject\n"); |
508 | 508 |
541 * @param msg The invitation message entered by the user | 541 * @param msg The invitation message entered by the user |
542 * @param name The username of the person to invite | 542 * @param name The username of the person to invite |
543 */ | 543 */ |
544 void mxit_chat_invite(PurpleConnection *gc, int id, const char *msg, const char *username) | 544 void mxit_chat_invite(PurpleConnection *gc, int id, const char *msg, const char *username) |
545 { | 545 { |
546 struct MXitSession* session = (struct MXitSession*) gc->proto_data; | 546 struct MXitSession* session = purple_connection_get_protocol_data(gc); |
547 struct multimx* multimx = NULL; | 547 struct multimx* multimx = NULL; |
548 PurpleBuddy* buddy; | 548 PurpleBuddy* buddy; |
549 PurpleConversation *convo; | 549 PurpleConversation *convo; |
550 char* tmp; | 550 char* tmp; |
551 | 551 |
587 * @param gc The connection object | 587 * @param gc The connection object |
588 * @param id The chat room ID | 588 * @param id The chat room ID |
589 */ | 589 */ |
590 void mxit_chat_leave(PurpleConnection *gc, int id) | 590 void mxit_chat_leave(PurpleConnection *gc, int id) |
591 { | 591 { |
592 struct MXitSession* session = (struct MXitSession*) gc->proto_data; | 592 struct MXitSession* session = purple_connection_get_protocol_data(gc); |
593 struct multimx* multimx = NULL; | 593 struct multimx* multimx = NULL; |
594 | 594 |
595 purple_debug_info(MXIT_PLUGIN_ID, "Groupchat %i leave\n", id); | 595 purple_debug_info(MXIT_PLUGIN_ID, "Groupchat %i leave\n", id); |
596 | 596 |
597 /* Find matching multimx group */ | 597 /* Find matching multimx group */ |
618 * @param flags The message flags | 618 * @param flags The message flags |
619 * @return Indicates success / failure | 619 * @return Indicates success / failure |
620 */ | 620 */ |
621 int mxit_chat_send(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags) | 621 int mxit_chat_send(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags) |
622 { | 622 { |
623 struct MXitSession* session = (struct MXitSession*) gc->proto_data; | 623 struct MXitSession* session = purple_connection_get_protocol_data(gc); |
624 struct multimx* multimx = NULL; | 624 struct multimx* multimx = NULL; |
625 const char* nickname; | 625 const char* nickname; |
626 | 626 |
627 purple_debug_info(MXIT_PLUGIN_ID, "Groupchat %i message send: '%s'\n", id, message); | 627 purple_debug_info(MXIT_PLUGIN_ID, "Groupchat %i message send: '%s'\n", id, message); |
628 | 628 |