diff mcabber/src/jab_iq.c @ 689:281aab5aef50

Introduce jb_iqs_display_list() helper function for debugging This function displays the currently queued IQ items.
author Mikael Berthe <mikael@lilotux.net>
date Thu, 09 Feb 2006 23:18:38 +0100
parents bdc1184f6877
children 3e965a1186c7
line wrap: on
line diff
--- a/mcabber/src/jab_iq.c	Thu Feb 09 23:16:46 2006 +0100
+++ b/mcabber/src/jab_iq.c	Thu Feb 09 23:18:38 2006 +0100
@@ -140,6 +140,19 @@
   }
 }
 
+void jb_iqs_display_list(void)
+{
+  GSList *p;
+  iqs *i;
+
+  scr_LogPrint(LPRINT_LOGNORM, "IQ list:");
+  for (p = iqs_list; p; p = g_slist_next(p)) {
+    i = p->data;
+    scr_LogPrint(LPRINT_LOGNORM, "Id [%s]", i->id);
+  }
+  scr_LogPrint(LPRINT_LOGNORM, "End of IQ list.");
+}
+
 static void request_roster(void)
 {
   iqs *iqn = iqs_new(JPACKET__GET, NS_ROSTER, "Roster", IQS_DEFAULT_TIMEOUT);