Mercurial > pidgin.yaz
comparison libpurple/protocols/bonjour/bonjour_ft.c @ 32767:2ec94166be43
On the way to hiding the PurpleConnection struct.
* Added purple_connection_get_flags() and purple_connection_set_flags()
* Use purple_connection_ accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Tue, 18 Oct 2011 18:47:48 +0000 |
parents | df7fb85b11ba |
children | 1ffa35da9a7b |
comparison
equal
deleted
inserted
replaced
32766:ea2b621fd3ba | 32767:2ec94166be43 |
---|---|
331 bd = purple_connection_get_protocol_data(gc); | 331 bd = purple_connection_get_protocol_data(gc); |
332 if(bd == NULL) | 332 if(bd == NULL) |
333 return NULL; | 333 return NULL; |
334 | 334 |
335 /* Build the file transfer handle */ | 335 /* Build the file transfer handle */ |
336 xfer = purple_xfer_new(gc->account, PURPLE_XFER_SEND, who); | 336 xfer = purple_xfer_new(purple_connection_get_account(gc), PURPLE_XFER_SEND, who); |
337 xep_xfer = g_new0(XepXfer, 1); | 337 xep_xfer = g_new0(XepXfer, 1); |
338 purple_xfer_set_protocol_data(xfer, xep_xfer); | 338 purple_xfer_set_protocol_data(xfer, xep_xfer); |
339 xep_xfer->data = bd; | 339 xep_xfer->data = bd; |
340 | 340 |
341 purple_debug_info("bonjour", "Bonjour-new-xfer bd=%p data=%p.\n", bd, xep_xfer->data); | 341 purple_debug_info("bonjour", "Bonjour-new-xfer bd=%p data=%p.\n", bd, xep_xfer->data); |
590 return; | 590 return; |
591 | 591 |
592 purple_debug_info("bonjour", "bonjour-xfer-receive.\n"); | 592 purple_debug_info("bonjour", "bonjour-xfer-receive.\n"); |
593 | 593 |
594 /* Build the file transfer handle */ | 594 /* Build the file transfer handle */ |
595 xfer = purple_xfer_new(pc->account, PURPLE_XFER_RECEIVE, from); | 595 xfer = purple_xfer_new(purple_connection_get_account(pc), PURPLE_XFER_RECEIVE, from); |
596 xf = g_new0(XepXfer, 1); | 596 xf = g_new0(XepXfer, 1); |
597 purple_xfer_set_protocol_data(xfer, xf); | 597 purple_xfer_set_protocol_data(xfer, xf); |
598 xf->data = bd; | 598 xf->data = bd; |
599 purple_xfer_set_filename(xfer, filename); | 599 purple_xfer_set_filename(xfer, filename); |
600 xf->iq_id = g_strdup(id); | 600 xf->iq_id = g_strdup(id); |