comparison 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
comparison
equal deleted inserted replaced
688:bdc1184f6877 689:281aab5aef50
138 iqs_callback(i->id, NULL); 138 iqs_callback(i->id, NULL);
139 } 139 }
140 } 140 }
141 } 141 }
142 142
143 void jb_iqs_display_list(void)
144 {
145 GSList *p;
146 iqs *i;
147
148 scr_LogPrint(LPRINT_LOGNORM, "IQ list:");
149 for (p = iqs_list; p; p = g_slist_next(p)) {
150 i = p->data;
151 scr_LogPrint(LPRINT_LOGNORM, "Id [%s]", i->id);
152 }
153 scr_LogPrint(LPRINT_LOGNORM, "End of IQ list.");
154 }
155
143 static void request_roster(void) 156 static void request_roster(void)
144 { 157 {
145 iqs *iqn = iqs_new(JPACKET__GET, NS_ROSTER, "Roster", IQS_DEFAULT_TIMEOUT); 158 iqs *iqn = iqs_new(JPACKET__GET, NS_ROSTER, "Roster", IQS_DEFAULT_TIMEOUT);
146 jab_send(jc, iqn->xmldata); 159 jab_send(jc, iqn->xmldata);
147 iqs_del(iqn->id); // XXX 160 iqs_del(iqn->id); // XXX