Mercurial > pidgin
changeset 30052:2caada025b1d
Remote more seemingly unnecessary stuff.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Wed, 05 May 2010 08:14:40 +0000 |
parents | 447f882d1ea5 |
children | 56871d6c06fc |
files | libpurple/protocols/msn/directconn.c |
diffstat | 1 files changed, 0 insertions(+), 144 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/msn/directconn.c Wed May 05 08:11:05 2010 +0000 +++ b/libpurple/protocols/msn/directconn.c Wed May 05 08:14:40 2010 +0000 @@ -375,150 +375,6 @@ return (const gchar *)&bin_header; } -/* -static void -msn_dc_send_bye(MsnDirectConn *dc) -{ - MsnSlpLink *slplink; - PurpleAccount *account; - char *body; - int body_len; - - if (purple_debug_is_verbose()) - purple_debug_info("msn", "msn_dc_send_bye %p\n", dc); - - g_return_if_fail(dc != NULL); - g_return_if_fail(dc->slpcall != NULL); - - slplink = dc->slpcall->slplink; - account = slplink->session->account; - - dc->header.session_id = 0; - dc->header.id = dc->slpcall->slplink->slp_seq_id++; - dc->header.offset = 0; - - body = g_strdup_printf( - "BYE MSNMSGR:%s MSNSLP/1.0\r\n" - "To: <msnmsgr:%s>\r\n" - "From: <msnmsgr:%s>\r\n" - "Via: MSNSLP/1.0/TLP ;branch={%s}\r\n" - "CSeq: 0\r\n" - "Call-ID: {%s}\r\n" - "Max-Forwards: 0\r\n" - "Content-Type: application/x-msnmsgr-sessionclosebody\r\n" - "Content-Length: 3\r\n" - "\r\n\r\n", - - slplink->remote_user, - slplink->remote_user, - purple_account_get_username(account), - dc->slpcall->branch, - dc->slpcall->id - ); - body_len = strlen(body) + 1; - memcpy(dc->buffer, body, body_len); - g_free(body); - - dc->header.total_size = body_len; - dc->header.length = body_len; - dc->header.flags = 0; - dc->header.ack_sub_id = 0; - dc->header.ack_size = 0; - - msn_dc_send_packet(dc); -} - -static void -msn_dc_send_ack(MsnDirectConn *dc) -{ - g_return_if_fail(dc != NULL); - - dc->header.session_id = 0; - dc->header.ack_sub_id = dc->header.ack_id; - dc->header.ack_id = dc->header.id; - dc->header.id = dc->slpcall->slplink->slp_seq_id++; - dc->header.offset = 0; - dc->header.length = 0; - dc->header.flags = 0x02; - dc->header.ack_size = dc->header.total_size; - - msn_dc_send_packet(dc); -} - -static void -msn_dc_send_data_ack(MsnDirectConn *dc) -{ - g_return_if_fail(dc != NULL); - - dc->header.session_id = dc->slpcall->session_id; - dc->header.ack_sub_id = dc->header.ack_id; - dc->header.ack_id = dc->header.id; - dc->header.id = dc->slpcall->slplink->slp_seq_id++; - dc->header.offset = 0; - dc->header.length = 0; - dc->header.flags = 0x02; - dc->header.ack_size = dc->header.total_size; - - msn_dc_send_packet(dc); -} - -static void -msn_dc_xfer_send_cancel(PurpleXfer *xfer) -{ - MsnSlpCall *slpcall; - MsnDirectConn *dc; - - purple_debug_info("msn", "msn_dc_xfer_send_cancel\n"); - - g_return_if_fail(xfer != NULL); - - slpcall = xfer->data; - g_return_if_fail(slpcall != NULL); - - dc = slpcall->dc; - g_return_if_fail(dc != NULL); - - switch (dc->state) { - case DC_STATE_TRANSFER: - msn_dc_send_bye(dc); - dc->state = DC_STATE_CANCELLED; - break; - - default: - msn_dc_destroy(dc); - break; - } -} - -static void -msn_dc_xfer_recv_cancel(PurpleXfer *xfer) -{ - MsnSlpCall *slpcall; - MsnDirectConn *dc; - - purple_debug_info("msn", "msn_dc_xfer_recv_cancel\n"); - - g_return_if_fail(xfer != NULL); - - slpcall = xfer->data; - g_return_if_fail(slpcall != NULL); - - dc = slpcall->dc; - g_return_if_fail(dc != NULL); - - switch (dc->state) { - case DC_STATE_TRANSFER: - msn_dc_send_bye(dc); - dc->state = DC_STATE_CANCELLED; - break; - - default: - msn_dc_destroy(dc); - break; - } -} -*/ - static void msn_dc_send_cb(gpointer data, gint fd, PurpleInputCondition cond) {