comparison src/protocols/msn/slplink.c @ 9571:b3711e089751

[gaim-migrate @ 10414] send_file() is defined in socket.h on AIX 5.1 and 5.2 I'm renaming the function and making it static so it compiles. Fixes sf bug 993771. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 22 Jul 2004 03:16:39 +0000
parents b4dc3827470a
children b030f83693da
comparison
equal deleted inserted replaced
9570:24f84b7ffe8e 9571:b3711e089751
204 msn_switchboard_send_msg(swboard, msg); 204 msn_switchboard_send_msg(swboard, msg);
205 } 205 }
206 } 206 }
207 } 207 }
208 208
209 void t_ack(MsnCmdProc *cmdproc, MsnCommand *cmd) 209 static void
210 t_ack(MsnCmdProc *cmdproc, MsnCommand *cmd)
210 { 211 {
211 MsnSlpMessage *slpmsg; 212 MsnSlpMessage *slpmsg;
212 long long real_size; 213 long long real_size;
213 214
214 slpmsg = cmd->trans->data; 215 slpmsg = cmd->trans->data;
386 #endif 387 #endif
387 388
388 msn_slplink_send_slpmsg(slplink, slpmsg); 389 msn_slplink_send_slpmsg(slplink, slpmsg);
389 } 390 }
390 391
391 void 392 static void
392 send_file(MsnSlpSession *slpsession) 393 send_file_cb(MsnSlpSession *slpsession)
393 { 394 {
394 MsnSlpCall *slpcall; 395 MsnSlpCall *slpcall;
395 MsnSlpMessage *slpmsg; 396 MsnSlpMessage *slpmsg;
396 397
397 slpcall = slpsession->slpcall; 398 slpcall = slpsession->slpcall;
568 guint32 unk3; 569 guint32 unk3;
569 } MsnContextHeader; 570 } MsnContextHeader;
570 571
571 #define MAX_FILE_NAME_LEN 0x226 572 #define MAX_FILE_NAME_LEN 0x226
572 573
573 char * 574 static char *
574 gen_context(const char *file_name) 575 gen_context(const char *file_name)
575 { 576 {
576 struct stat st; 577 struct stat st;
577 gsize size = 0; 578 gsize size = 0;
578 MsnContextHeader header; 579 MsnContextHeader header;
627 g_return_if_fail(fn != NULL); 628 g_return_if_fail(fn != NULL);
628 629
629 slpcall = msn_slp_call_new(slplink); 630 slpcall = msn_slp_call_new(slplink);
630 msn_slp_call_init(slpcall, MSN_SLPCALL_DC); 631 msn_slp_call_init(slpcall, MSN_SLPCALL_DC);
631 632
632 slpcall->session_init_cb = send_file; 633 slpcall->session_init_cb = send_file_cb;
633 slpcall->progress_cb = msn_xfer_progress_cb; 634 slpcall->progress_cb = msn_xfer_progress_cb;
634 slpcall->cb = msn_xfer_completed_cb; 635 slpcall->cb = msn_xfer_completed_cb;
635 slpcall->xfer = xfer; 636 slpcall->xfer = xfer;
636 637
637 gaim_xfer_set_cancel_send_fnc(xfer, msn_xfer_cancel); 638 gaim_xfer_set_cancel_send_fnc(xfer, msn_xfer_cancel);