Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/slpcall.c @ 32422:92711688c245
Convert the msn prpl to use the new API.
author | andrew.victor@mxit.com |
---|---|
date | Fri, 26 Aug 2011 18:37:27 +0000 |
parents | 462c19eb31d8 |
children | 60d879806964 |
comparison
equal
deleted
inserted
replaced
32421:7497a77070ac | 32422:92711688c245 |
---|---|
111 slpcall->end_cb(slpcall, slpcall->slplink->session); | 111 slpcall->end_cb(slpcall, slpcall->slplink->session); |
112 | 112 |
113 if (slpcall->xfer != NULL) { | 113 if (slpcall->xfer != NULL) { |
114 if (purple_xfer_get_type(slpcall->xfer) == PURPLE_XFER_RECEIVE) | 114 if (purple_xfer_get_type(slpcall->xfer) == PURPLE_XFER_RECEIVE) |
115 g_byte_array_free(slpcall->u.incoming_data, TRUE); | 115 g_byte_array_free(slpcall->u.incoming_data, TRUE); |
116 slpcall->xfer->data = NULL; | 116 purple_xfer_set_protocol_data(slpcall->xfer, NULL); |
117 purple_xfer_unref(slpcall->xfer); | 117 purple_xfer_unref(slpcall->xfer); |
118 } | 118 } |
119 | 119 |
120 | 120 |
121 msn_slplink_remove_slpcall(slpcall->slplink, slpcall); | 121 msn_slplink_remove_slpcall(slpcall->slplink, slpcall); |
548 slpcall->u.incoming_data = g_byte_array_new(); | 548 slpcall->u.incoming_data = g_byte_array_new(); |
549 | 549 |
550 slpcall->xfer = xfer; | 550 slpcall->xfer = xfer; |
551 purple_xfer_ref(slpcall->xfer); | 551 purple_xfer_ref(slpcall->xfer); |
552 | 552 |
553 xfer->data = slpcall; | 553 purple_xfer_set_protocol_data(xfer, slpcall); |
554 | 554 |
555 if (file_context->preview) { | 555 if (file_context->preview) { |
556 purple_xfer_set_thumbnail(xfer, file_context->preview, | 556 purple_xfer_set_thumbnail(xfer, file_context->preview, |
557 file_context->preview_len, | 557 file_context->preview_len, |
558 "image/png"); | 558 "image/png"); |