comparison libpurple/protocols/jabber/presence.c @ 25018:2a6a37c7970b

* changed name of jabber_caps_calculate_hash() to jabber_caps_calculate_own_hash() * added function which parses a query node to internal caps structure
author Tobias Markmann <tfar@soc.pidgin.im>
date Sun, 22 Jun 2008 17:25:23 +0000
parents 26eabe8e739b
children 4c97156431b4
comparison
equal deleted inserted replaced
25017:26eabe8e739b 25018:2a6a37c7970b
263 /* JEP-0115 */ 263 /* JEP-0115 */
264 c = xmlnode_new_child(presence, "c"); 264 c = xmlnode_new_child(presence, "c");
265 xmlnode_set_namespace(c, "http://jabber.org/protocol/caps"); 265 xmlnode_set_namespace(c, "http://jabber.org/protocol/caps");
266 xmlnode_set_attrib(c, "node", CAPS0115_NODE); 266 xmlnode_set_attrib(c, "node", CAPS0115_NODE);
267 xmlnode_set_attrib(c, "hash", "sha-1"); 267 xmlnode_set_attrib(c, "hash", "sha-1");
268 xmlnode_set_attrib(c, "ver", jabber_caps_get_hash()); 268 xmlnode_set_attrib(c, "ver", jabber_caps_get_own_hash());
269 269
270 #if 0 270 #if 0
271 if(js != NULL) { 271 if(js != NULL) {
272 /* add the extensions */ 272 /* add the extensions */
273 char extlist[1024]; 273 char extlist[1024];