/cpw/tomkiewicz/gg11: 15361867e114: Gadu-Gadu: add some prints f...

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Fri Sep 7 11:44:47 EDT 2012


Changeset: 15361867e114cf1667f81dd697e4a604533567ce
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2012-09-07 17:44 +0200
Branch:	 default
URL: http://hg.pidgin.im/cpw/tomkiewicz/gg11/rev/15361867e114

Description:

Gadu-Gadu: add some prints for gg11

diffstat:

 libpurple/protocols/gg/gg.c |  18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diffs (45 lines):

diff --git a/libpurple/protocols/gg/gg.c b/libpurple/protocols/gg/gg.c
--- a/libpurple/protocols/gg/gg.c
+++ b/libpurple/protocols/gg/gg.c
@@ -406,10 +406,10 @@ void ggp_recv_message_handler(PurpleConn
 		}
 	}
 
-	purple_debug_info("gg", "ggp_recv_message_handler: msg from (%s): %s (class = %d; rcpt_count = %d; multilogon = %d)\n",
+	purple_debug_info("gg", "ggp_recv_message_handler: msg from (%s): %s (class = %d; rcpt_count = %d; multilogon = %d; chat_id = %llu)\n",
 			from, msg, ev->msgclass,
 			ev->recipients_count,
-			multilogon);
+			multilogon, ev->chat_id);
 
 	if (multilogon && ev->recipients_count != 0) {
 		purple_debug_warning("gg", "ggp_recv_message_handler: conference multilogon messages are not yet handled\n");
@@ -596,8 +596,14 @@ static void ggp_callback_recv(gpointer _
 		case GG_EVENT_MULTILOGON_INFO:
 			ggp_multilogon_info(gc, &ev->event.multilogon_info);
 			break;
+		case GG_EVENT_IMTOKEN:
+			purple_debug_info("gg", "gg11: got IMTOKEN %s\n", ev->event.imtoken.imtoken);
+			break;
+		case GG_EVENT_PONG110:
+			purple_debug_info("gg", "gg11: got PONG110 %lu\n", ev->event.pong110.time);
+			break;
 		default:
-			purple_debug_error("gg",
+			purple_debug_warning("gg",
 				"unsupported event type=%d\n", ev->type);
 			break;
 	}
@@ -643,6 +649,12 @@ static void ggp_async_login_handler(gpoi
 		case GG_STATE_TLS_NEGOTIATION:
 			purple_debug_info("gg", "GG_STATE_TLS_NEGOTIATION\n");
 			break;
+		case GG_STATE_RESOLVING_HUB:
+			purple_debug_info("gg", "GG_STATE_RESOLVING_HUB\n");
+			break;
+		case GG_STATE_READING_HUB:
+			purple_debug_info("gg", "GG_STATE_READING_HUB\n");
+			break;
 		default:
 			purple_debug_error("gg", "unknown state = %d\n",
 					 info->session->state);



More information about the Commits mailing list