comparison libpurple/protocols/jabber/disco.c @ 26352:e23a74d7c97c

Get rid of the rest of the extraneous changes.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Mon, 23 Mar 2009 06:07:16 +0000
parents ff4212a5268f
children cec679e45332 882748e27f9d 4f14455a86d2
comparison
equal deleted inserted replaced
26351:0dfd05966e09 26352:e23a74d7c97c
87 87
88 88
89 void jabber_disco_info_parse(JabberStream *js, xmlnode *packet) { 89 void jabber_disco_info_parse(JabberStream *js, xmlnode *packet) {
90 const char *from = xmlnode_get_attrib(packet, "from"); 90 const char *from = xmlnode_get_attrib(packet, "from");
91 const char *type = xmlnode_get_attrib(packet, "type"); 91 const char *type = xmlnode_get_attrib(packet, "type");
92 92
93 if(!from || !type) 93 if(!from || !type)
94 return; 94 return;
95 95
96 if(!strcmp(type, "get")) { 96 if(!strcmp(type, "get")) {
97 xmlnode *query, *identity, *feature; 97 xmlnode *query, *identity, *feature;
113 xmlnode_set_attrib(iq->node, "to", from); 113 xmlnode_set_attrib(iq->node, "to", from);
114 query = xmlnode_get_child(iq->node, "query"); 114 query = xmlnode_get_child(iq->node, "query");
115 115
116 if(node) 116 if(node)
117 xmlnode_set_attrib(query, "node", node); 117 xmlnode_set_attrib(query, "node", node);
118 118
119 if(!node || !strcmp(node, CAPS0115_NODE "#" VERSION)) { 119 if(!node || !strcmp(node, CAPS0115_NODE "#" VERSION)) {
120 identity = xmlnode_new_child(query, "identity"); 120 identity = xmlnode_new_child(query, "identity");
121 xmlnode_set_attrib(identity, "category", "client"); 121 xmlnode_set_attrib(identity, "category", "client");
122 xmlnode_set_attrib(identity, "type", "pc"); /* XXX: bot, console, 122 xmlnode_set_attrib(identity, "type", "pc"); /* XXX: bot, console,
123 * handheld, pc, phone, 123 * handheld, pc, phone,
457 457
458 /* autodiscover stun and relays */ 458 /* autodiscover stun and relays */
459 jabber_google_send_jingle_info(js); 459 jabber_google_send_jingle_info(js);
460 } else { 460 } else {
461 /* TODO: add external service discovery here... */ 461 /* TODO: add external service discovery here... */
462 } 462 }
463 } 463 }
464 464
465 for (child = xmlnode_get_child(query, "feature"); child; 465 for (child = xmlnode_get_child(query, "feature"); child;
466 child = xmlnode_get_next_twin(child)) { 466 child = xmlnode_get_next_twin(child)) {
467 const char *var; 467 const char *var;