comparison libpurple/protocols/msn/slplink.c @ 24396:58fabce901e1

Make a few more functions static and remove a few declarations for functions that don't exist
author Mark Doliner <mark@kingant.net>
date Thu, 13 Nov 2008 07:36:33 +0000
parents 9b253ce969d0
children b27908701f66
comparison
equal deleted inserted replaced
24395:9b253ce969d0 24396:58fabce901e1
206 } 206 }
207 207
208 return NULL; 208 return NULL;
209 } 209 }
210 210
211 void 211 static void
212 msn_slplink_send_msg(MsnSlpLink *slplink, MsnMessage *msg) 212 msn_slplink_send_msg(MsnSlpLink *slplink, MsnMessage *msg)
213 { 213 {
214 #if 0 214 #if 0
215 if (slplink->directconn != NULL) 215 if (slplink->directconn != NULL)
216 { 216 {
422 { 422 {
423 msn_slplink_release_slpmsg(slplink, slpmsg); 423 msn_slplink_release_slpmsg(slplink, slpmsg);
424 } 424 }
425 } 425 }
426 426
427 void 427 static void
428 msn_slplink_send_ack(MsnSlpLink *slplink, MsnMessage *msg) 428 msn_slplink_send_ack(MsnSlpLink *slplink, MsnMessage *msg)
429 { 429 {
430 MsnSlpMessage *slpmsg; 430 MsnSlpMessage *slpmsg;
431 431
432 slpmsg = msn_slpmsg_new(slplink); 432 slpmsg = msn_slpmsg_new(slplink);
464 if (g_stat(purple_xfer_get_local_filename(xfer), &st) == 0) 464 if (g_stat(purple_xfer_get_local_filename(xfer), &st) == 0)
465 slpmsg->size = st.st_size; 465 slpmsg->size = st.st_size;
466 xfer->dest_fp = NULL; /* Disable double fclose() */ 466 xfer->dest_fp = NULL; /* Disable double fclose() */
467 467
468 msn_slplink_send_slpmsg(slpcall->slplink, slpmsg); 468 msn_slplink_send_slpmsg(slpcall->slplink, slpmsg);
469 }
470
471 static MsnSlpMessage *
472 msn_slplink_message_find(MsnSlpLink *slplink, long session_id, long id)
473 {
474 GList *e;
475
476 for (e = slplink->slp_msgs; e != NULL; e = e->next)
477 {
478 MsnSlpMessage *slpmsg = e->data;
479
480 if ((slpmsg->session_id == session_id) && (slpmsg->id == id))
481 return slpmsg;
482 }
483
484 return NULL;
469 } 485 }
470 486
471 void 487 void
472 msn_slplink_process_msg(MsnSlpLink *slplink, MsnMessage *msg) 488 msn_slplink_process_msg(MsnSlpLink *slplink, MsnMessage *msg)
473 { 489 {
627 if (slpcall != NULL && slpcall->wasted) 643 if (slpcall != NULL && slpcall->wasted)
628 msn_slp_call_destroy(slpcall); 644 msn_slp_call_destroy(slpcall);
629 } 645 }
630 } 646 }
631 647
632 MsnSlpMessage *
633 msn_slplink_message_find(MsnSlpLink *slplink, long session_id, long id)
634 {
635 GList *e;
636
637 for (e = slplink->slp_msgs; e != NULL; e = e->next)
638 {
639 MsnSlpMessage *slpmsg = e->data;
640
641 if ((slpmsg->session_id == session_id) && (slpmsg->id == id))
642 return slpmsg;
643 }
644
645 return NULL;
646 }
647
648 typedef struct 648 typedef struct
649 { 649 {
650 guint32 length; 650 guint32 length;
651 guint32 unk1; 651 guint32 unk1;
652 guint32 file_size; 652 guint32 file_size;