Mercurial > pidgin
changeset 19807:74334aadd843
[gaim-migrate @ 16876]
add some comments
committed by MaYuan<mayuan2006@gmail.com>
committer: Ethan Blanton <elb@pidgin.im>
author | Ma Yuan <mayuan2006@gmail.com> |
---|---|
date | Sat, 19 Aug 2006 07:02:12 +0000 |
parents | cabf9165c9ce |
children | 75ecc42d3e8d |
files | src/protocols/msn/soap.c src/protocols/msn/switchboard.c |
diffstat | 2 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/soap.c Sat Aug 19 05:52:13 2006 +0000 +++ b/src/protocols/msn/soap.c Sat Aug 19 07:02:12 2006 +0000 @@ -26,6 +26,7 @@ #include "msn.h" #include "soap.h" +/*setup the soap process step*/ void msn_soap_set_process_step(MsnSoapConn *soapconn, MsnSoapStep step) { @@ -483,6 +484,7 @@ g_free(request); } +/*post the soap request queue's head request*/ void msn_soap_post_head_request(MsnSoapConn *soapconn) { @@ -495,6 +497,9 @@ msn_soap_set_process_step(soapconn,MSN_SOAP_CONNECTED_IDLE); } +/*post the soap request , + * if not connected, Connected first. + */ void msn_soap_post(MsnSoapConn *soapconn,MsnSoapReq *request, MsnSoapConnectInitFunction msn_soap_init_func)
--- a/src/protocols/msn/switchboard.c Sat Aug 19 05:52:13 2006 +0000 +++ b/src/protocols/msn/switchboard.c Sat Aug 19 07:02:12 2006 +0000 @@ -984,16 +984,13 @@ swboard = cmdproc->data; g_return_if_fail(swboard != NULL); - if (msn_switchboard_is_invited(swboard)) - { + if (msn_switchboard_is_invited(swboard)){ swboard->empty = FALSE; msn_cmdproc_send(cmdproc, "ANS", "%s %s %s", gaim_account_get_username(account), swboard->auth_key, swboard->session_id); - } - else - { + }else{ msn_cmdproc_send(cmdproc, "USR", "%s %s", gaim_account_get_username(account), swboard->auth_key); @@ -1132,6 +1129,7 @@ /* The conversation window was closed. */ return; + gaim_debug_info("MaYuan","Switchboard:auth:{%s} socket:{%s}\n",cmd->params[4],cmd->params[2]); msn_switchboard_set_auth_key(swboard, cmd->params[4]); msn_parse_socket(cmd->params[2], &host, &port);