pidgin: 00369ddd: Make a few more functions static and rem...
markdoliner at pidgin.im
markdoliner at pidgin.im
Thu Nov 13 02:40:24 EST 2008
-----------------------------------------------------------------
Revision: 00369ddd9466ac4625e42405995ce19084ff154e
Ancestor: 430ded768587b2c84b0bd662bc468b1a0aae6745
Author: markdoliner at pidgin.im
Date: 2008-11-13T07:36:33
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/00369ddd9466ac4625e42405995ce19084ff154e
Modified files:
libpurple/protocols/msn/slplink.c
libpurple/protocols/msn/slplink.h
ChangeLog:
Make a few more functions static and remove a few declarations for
functions that don't exist
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c d2cd72af13d98a716680e51497d9702c44b1baa4
+++ libpurple/protocols/msn/slplink.c 91236c44b19660bce79196e2429cf4791e7af768
@@ -208,7 +208,7 @@ msn_slplink_find_slp_call_with_session_i
return NULL;
}
-void
+static void
msn_slplink_send_msg(MsnSlpLink *slplink, MsnMessage *msg)
{
#if 0
@@ -424,7 +424,7 @@ msn_slplink_unleash(MsnSlpLink *slplink)
}
}
-void
+static void
msn_slplink_send_ack(MsnSlpLink *slplink, MsnMessage *msg)
{
MsnSlpMessage *slpmsg;
@@ -468,6 +468,22 @@ send_file_cb(MsnSlpCall *slpcall)
msn_slplink_send_slpmsg(slpcall->slplink, slpmsg);
}
+static MsnSlpMessage *
+msn_slplink_message_find(MsnSlpLink *slplink, long session_id, long id)
+{
+ GList *e;
+
+ for (e = slplink->slp_msgs; e != NULL; e = e->next)
+ {
+ MsnSlpMessage *slpmsg = e->data;
+
+ if ((slpmsg->session_id == session_id) && (slpmsg->id == id))
+ return slpmsg;
+ }
+
+ return NULL;
+}
+
void
msn_slplink_process_msg(MsnSlpLink *slplink, MsnMessage *msg)
{
@@ -629,22 +645,6 @@ msn_slplink_process_msg(MsnSlpLink *slpl
}
}
-MsnSlpMessage *
-msn_slplink_message_find(MsnSlpLink *slplink, long session_id, long id)
-{
- GList *e;
-
- for (e = slplink->slp_msgs; e != NULL; e = e->next)
- {
- MsnSlpMessage *slpmsg = e->data;
-
- if ((slpmsg->session_id == session_id) && (slpmsg->id == id))
- return slpmsg;
- }
-
- return NULL;
-}
-
typedef struct
{
guint32 length;
============================================================
--- libpurple/protocols/msn/slplink.h 5dd16a752b1835e7ad6f8b9011c9b8cf9f6a2683
+++ libpurple/protocols/msn/slplink.h 70be62b0411f15c98789bbcde66cfab19144edd4
@@ -77,19 +77,13 @@ MsnSlpCall *msn_slplink_find_slp_call_wi
MsnSlpCall *msn_slplink_find_slp_call(MsnSlpLink *slplink,
const char *id);
MsnSlpCall *msn_slplink_find_slp_call_with_session_id(MsnSlpLink *slplink, long id);
-void msn_slplink_send_msg(MsnSlpLink *slplink, MsnMessage *msg);
void msn_slplink_release_slpmsg(MsnSlpLink *slplink,
MsnSlpMessage *slpmsg);
void msn_slplink_queue_slpmsg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg);
void msn_slplink_send_slpmsg(MsnSlpLink *slplink,
MsnSlpMessage *slpmsg);
void msn_slplink_unleash(MsnSlpLink *slplink);
-void msn_slplink_send_ack(MsnSlpLink *slplink, MsnMessage *msg);
void msn_slplink_process_msg(MsnSlpLink *slplink, MsnMessage *msg);
-MsnSlpMessage *msn_slplink_message_find(MsnSlpLink *slplink, long session_id, long id);
-void msn_slplink_append_slp_msg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg);
-void msn_slplink_remove_slp_msg(MsnSlpLink *slplink,
- MsnSlpMessage *slpmsg);
void msn_slplink_request_ft(MsnSlpLink *slplink, PurpleXfer *xfer);
void msn_slplink_request_object(MsnSlpLink *slplink,
More information about the Commits
mailing list