Mercurial > pidgin
comparison libpurple/protocols/jabber/pep.c @ 26465:ae41d8e827e3
Convert all the XMPP IQ callbacks to a typedef similar to the IQ Handlers.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Fri, 13 Mar 2009 02:26:45 +0000 |
parents | 5f9a24d1c25e |
children | 242a8c97270b bc7fac8e2f79 |
comparison
equal
deleted
inserted
replaced
26464:a4a5825fb1bb | 26465:ae41d8e827e3 |
---|---|
50 jabber_add_feature(shortname, notifyns, NULL); /* receiving PEPs is always supported */ | 50 jabber_add_feature(shortname, notifyns, NULL); /* receiving PEPs is always supported */ |
51 g_free(notifyns); | 51 g_free(notifyns); |
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 |
56 const char *from = xmlnode_get_attrib(packet,"from"); | 56 do_pep_iq_request_item_callback(JabberStream *js, const char *from, |
57 JabberIqType type, const char *id, | |
58 xmlnode *packet, gpointer data) | |
59 { | |
57 xmlnode *pubsub = xmlnode_get_child_with_namespace(packet,"pubsub","http://jabber.org/protocol/pubsub"); | 60 xmlnode *pubsub = xmlnode_get_child_with_namespace(packet,"pubsub","http://jabber.org/protocol/pubsub"); |
58 xmlnode *items = NULL; | 61 xmlnode *items = NULL; |
59 JabberPEPHandler *cb = data; | 62 JabberPEPHandler *cb = data; |
60 | 63 |
61 if(pubsub) | 64 if(pubsub) |