changeset 27892:4f7eded28919

The amount of indirection in the msn prpl bothers me, so I'm flatteneing this call chain one level
author Mark Doliner <mark@kingant.net>
date Thu, 13 Aug 2009 01:31:15 +0000
parents 43448eca27d9
children 3157a8ea0012
files libpurple/protocols/msn/directconn.c
diffstat 1 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/directconn.c	Thu Aug 13 01:24:59 2009 +0000
+++ b/libpurple/protocols/msn/directconn.c	Thu Aug 13 01:31:15 2009 +0000
@@ -247,14 +247,6 @@
 }
 
 static void
-msn_directconn_process_msg(MsnDirectConn *directconn, MsnMessage *msg)
-{
-	purple_debug_info("msn", "directconn: process_msg\n");
-
-	msn_slplink_process_msg(directconn->slplink, msg);
-}
-
-static void
 read_cb(gpointer data, gint source, PurpleInputCondition cond)
 {
 	MsnDirectConn* directconn;
@@ -337,7 +329,8 @@
 		msg = msn_message_new_msnslp();
 		msn_message_parse_slp_body(msg, body, body_len);
 
-		msn_directconn_process_msg(directconn, msg);
+		purple_debug_info("msn", "directconn: process_msg\n");
+		msn_slplink_process_msg(directconn->slplink, msg);
 	}
 	else
 	{