comparison libpurple/protocols/jabber/pep.c @ 25801:6f94b4a27372

propagate from branch 'im.pidgin.pidgin' (head f1327672337219c8907eea2d335efb0035e4b39e) to branch 'im.pidgin.cpw.malu.xmpp.idle' (head 6bfd4d87742ad77dd228039033d081fb8b68f8aa)
author Marcus Lundblad <ml@update.uu.se>
date Tue, 02 Dec 2008 22:45:39 +0000
parents 4caae7801f4d
children 5f9a24d1c25e e1f363f8fd6b 5dd25c58b65e
comparison
equal deleted inserted replaced
25800:b2f4964768d7 25801:6f94b4a27372
52 g_hash_table_replace(pep_handlers, g_strdup(xmlns), handlerfunc); 52 g_hash_table_replace(pep_handlers, g_strdup(xmlns), handlerfunc);
53 } 53 }
54 54
55 static void do_pep_iq_request_item_callback(JabberStream *js, xmlnode *packet, gpointer data) { 55 static void do_pep_iq_request_item_callback(JabberStream *js, xmlnode *packet, gpointer data) {
56 const char *from = xmlnode_get_attrib(packet,"from"); 56 const char *from = xmlnode_get_attrib(packet,"from");
57 xmlnode *pubsub = xmlnode_get_child_with_namespace(packet,"pubsub","http://jabber.org/protocol/pubsub#event"); 57 xmlnode *pubsub = xmlnode_get_child_with_namespace(packet,"pubsub","http://jabber.org/protocol/pubsub");
58 xmlnode *items = NULL; 58 xmlnode *items = NULL;
59 JabberPEPHandler *cb = data; 59 JabberPEPHandler *cb = data;
60 60
61 if(pubsub) 61 if(pubsub)
62 items = xmlnode_get_child(pubsub, "items"); 62 items = xmlnode_get_child(pubsub, "items");