diff options
author | Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im> | 2013-07-23 14:10:34 +0200 |
---|---|---|
committer | Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im> | 2013-07-23 14:10:34 +0200 |
commit | 49087682770a35ae4cbff630359726ec5626e5e6 (patch) | |
tree | bf425a4b4c2b18f4f65b5a9ca55e32bc96a2442c /libpurple/protocols/msn/oim.c | |
parent | e892b5ec8857c5b1a1e41285ff56ac00aee2b42a (diff) | |
download | pidgin-49087682770a35ae4cbff630359726ec5626e5e6.tar.gz |
HTTP: purify internal API for msn's SOAP handling
Diffstat (limited to 'libpurple/protocols/msn/oim.c')
-rw-r--r-- | libpurple/protocols/msn/oim.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libpurple/protocols/msn/oim.c b/libpurple/protocols/msn/oim.c index 97a28985c1..a08ee258f7 100644 --- a/libpurple/protocols/msn/oim.c +++ b/libpurple/protocols/msn/oim.c @@ -167,7 +167,7 @@ msn_oim_request_cb(MsnSoapMessage *request, MsnSoapMessage *response, xmlnode *faultcode = NULL; if (response != NULL) - fault = xmlnode_get_child(response->xml, "Body/Fault"); + fault = xmlnode_get_child(msn_soap_message_get_xml(response), "Body/Fault"); if (fault && (faultcode = xmlnode_get_child(fault, "faultcode"))) { gchar *faultcode_str = xmlnode_get_data(faultcode); @@ -282,7 +282,7 @@ msn_oim_get_metadata_cb(MsnSoapMessage *request, MsnSoapMessage *response, if (response) { msn_parse_oim_xml(oim, - xmlnode_get_child(response->xml, "Body/GetMetadataResponse/MD")); + xmlnode_get_child(msn_soap_message_get_xml(response), "Body/GetMetadataResponse/MD")); } } @@ -351,7 +351,7 @@ msn_oim_send_read_cb(MsnSoapMessage *request, MsnSoapMessage *response, if (response == NULL) { purple_debug_info("msn", "cannot send OIM: %s\n", msg->oim_msg); } else { - xmlnode *faultNode = xmlnode_get_child(response->xml, "Body/Fault"); + xmlnode *faultNode = xmlnode_get_child(msn_soap_message_get_xml(response), "Body/Fault"); if (faultNode == NULL) { /*Send OK! return*/ @@ -499,7 +499,7 @@ msn_oim_delete_read_cb(MsnSoapMessage *request, MsnSoapMessage *response, { MsnOimRecvData *rdata = data; - if (response && xmlnode_get_child(response->xml, "Body/Fault") == NULL) + if (response && xmlnode_get_child(msn_soap_message_get_xml(response), "Body/Fault") == NULL) purple_debug_info("msn", "Delete OIM success\n"); else purple_debug_info("msn", "Delete OIM failed\n"); @@ -761,7 +761,7 @@ msn_oim_get_read_cb(MsnSoapMessage *request, MsnSoapMessage *response, MsnOimRecvData *rdata = data; if (response != NULL) { - xmlnode *msg_node = xmlnode_get_child(response->xml, + xmlnode *msg_node = xmlnode_get_child(msn_soap_message_get_xml(response), "Body/GetMessageResponse/GetMessageResult"); if (msg_node) { @@ -769,7 +769,7 @@ msn_oim_get_read_cb(MsnSoapMessage *request, MsnSoapMessage *response, msn_oim_report_to_user(rdata, msg_str); g_free(msg_str); } else { - char *str = xmlnode_to_str(response->xml, NULL); + char *str = xmlnode_to_str(msn_soap_message_get_xml(response), NULL); purple_debug_info("msn", "Unknown OIM response: %s\n", str); g_free(str); msn_oim_recv_data_free(rdata); |