comparison mcabber/src/jab_iq.c @ 684:3282276e7413

Switch IQ packet creation to the new IQ system Use iqs_new() instead of jutil_iqnew().
author Mikael Berthe <mikael@lilotux.net>
date Mon, 06 Feb 2006 20:02:09 +0100
parents c5e0d8c3f00c
children f033345d1315
comparison
equal deleted inserted replaced
683:c5e0d8c3f00c 684:3282276e7413
142 } 142 }
143 } 143 }
144 144
145 static void request_roster(void) 145 static void request_roster(void)
146 { 146 {
147 xmlnode x = jutil_iqnew(JPACKET__GET, NS_ROSTER); 147 iqs *iqn = iqs_new(JPACKET__GET, NS_ROSTER, "Roster", IQS_DEFAULT_TIMEOUT);
148 xmlnode_put_attrib(x, "id", "Roster1"); // XXX 148 jab_send(jc, iqn->xmldata);
149 jab_send(jc, x); 149 iqs_del(iqn->id); // XXX
150 xmlnode_free(x);
151 } 150 }
152 151
153 static void handle_iq_roster(xmlnode x) 152 static void handle_iq_roster(xmlnode x)
154 { 153 {
155 xmlnode y; 154 xmlnode y;