comparison libpurple/protocols/jabber/iq.c @ 25433:36c73d036026

disapproval of revision '8a80f271858548f73cac50625660e87df1970bcc'
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 08 Feb 2009 00:23:13 +0000
parents e30e9779e7bf
children ced3d4ab745a b98519a42e53
comparison
equal deleted inserted replaced
25428:e30e9779e7bf 25433:36c73d036026
307 } 307 }
308 308
309 void jabber_iq_parse(JabberStream *js, xmlnode *packet) 309 void jabber_iq_parse(JabberStream *js, xmlnode *packet)
310 { 310 {
311 JabberCallbackData *jcd; 311 JabberCallbackData *jcd;
312 xmlnode *child, *query, *error, *x; 312 xmlnode *query, *error, *x;
313 const char *xmlns; 313 const char *xmlns;
314 const char *type, *id, *from; 314 const char *type, *id, *from;
315 JabberIqHandler *jih; 315 JabberIqHandler *jih;
316 316
317 query = xmlnode_get_child(packet, "query"); 317 query = xmlnode_get_child(packet, "query");
369 jih(js, packet); 369 jih(js, packet);
370 return; 370 return;
371 } 371 }
372 } 372 }
373 373
374 if ((child = xmlnode_get_child_with_namespace(packet, "si", "http://jabber.org/protocol/si"))) { 374 if(xmlnode_get_child_with_namespace(packet, "si", "http://jabber.org/protocol/si")) {
375 jabber_si_parse(js, child, from, id); 375 jabber_si_parse(js, packet);
376 return; 376 return;
377 } 377 }
378 378
379 if (xmlnode_get_child_with_namespace(packet, "new-mail", "google:mail:notify")) { 379 if(xmlnode_get_child_with_namespace(packet, "new-mail", "google:mail:notify")) {
380 jabber_gmail_poke(js, type); 380 jabber_gmail_poke(js, packet);
381 return; 381 return;
382 } 382 }
383 383
384 purple_debug_info("jabber", "jabber_iq_parse\n"); 384 purple_debug_info("jabber", "jabber_iq_parse\n");
385 385
386 if (xmlnode_get_child_with_namespace(packet, "ping", "urn:xmpp:ping")) { 386 if(xmlnode_get_child_with_namespace(packet, "ping", "urn:xmpp:ping")) {
387 jabber_ping_parse(js, from, id); 387 jabber_ping_parse(js, packet);
388 return; 388 return;
389 } 389 }
390 390
391 if ((child = xmlnode_get_child_with_namespace(packet, "data", XEP_0231_NAMESPACE))) { 391 if (xmlnode_get_child_with_namespace(packet, "data", XEP_0231_NAMESPACE)) {
392 jabber_data_parse(js, child, from, id); 392 jabber_data_parse(js, packet);
393 return; 393 return;
394 } 394 }
395 395
396 /* If we get here, send the default error reply mandated by XMPP-CORE */ 396 /* If we get here, send the default error reply mandated by XMPP-CORE */
397 if(!strcmp(type, "set") || !strcmp(type, "get")) { 397 if(!strcmp(type, "set") || !strcmp(type, "get")) {