Mercurial > pidgin
comparison libpurple/protocols/msn/directconn.c @ 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 | da33da2e1a1e |
children | 3157a8ea0012 |
comparison
equal
deleted
inserted
replaced
27891:43448eca27d9 | 27892:4f7eded28919 |
---|---|
245 | 245 |
246 msn_directconn_write(directconn, body, body_len); | 246 msn_directconn_write(directconn, body, body_len); |
247 } | 247 } |
248 | 248 |
249 static void | 249 static void |
250 msn_directconn_process_msg(MsnDirectConn *directconn, MsnMessage *msg) | |
251 { | |
252 purple_debug_info("msn", "directconn: process_msg\n"); | |
253 | |
254 msn_slplink_process_msg(directconn->slplink, msg); | |
255 } | |
256 | |
257 static void | |
258 read_cb(gpointer data, gint source, PurpleInputCondition cond) | 250 read_cb(gpointer data, gint source, PurpleInputCondition cond) |
259 { | 251 { |
260 MsnDirectConn* directconn; | 252 MsnDirectConn* directconn; |
261 char *body; | 253 char *body; |
262 size_t body_len; | 254 size_t body_len; |
335 directconn->c++; | 327 directconn->c++; |
336 | 328 |
337 msg = msn_message_new_msnslp(); | 329 msg = msn_message_new_msnslp(); |
338 msn_message_parse_slp_body(msg, body, body_len); | 330 msn_message_parse_slp_body(msg, body, body_len); |
339 | 331 |
340 msn_directconn_process_msg(directconn, msg); | 332 purple_debug_info("msn", "directconn: process_msg\n"); |
333 msn_slplink_process_msg(directconn->slplink, msg); | |
341 } | 334 } |
342 else | 335 else |
343 { | 336 { |
344 /* ERROR */ | 337 /* ERROR */ |
345 purple_debug_error("msn", "error reading\n"); | 338 purple_debug_error("msn", "error reading\n"); |