Mercurial > pidgin
comparison libpurple/protocols/jabber/disco.h @ 25648:050052891c55
Pass IQ handlers type, from, id, and the child node
As QuLogic pointed out in 8a80f271, it's pointless for the handlers to re-get
the information from the IQ stanza. Additionally, instead of string-matching
the type everywhere, pass around a JabberIqType.
Last, 'child' cannot be NULL, but 'from' may be.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 08 Feb 2009 06:31:18 +0000 |
parents | 44b4e8bd759b |
children | 5767b7698c73 |
comparison
equal
deleted
inserted
replaced
25647:969c89c09ad7 | 25648:050052891c55 |
---|---|
25 #include "jabber.h" | 25 #include "jabber.h" |
26 | 26 |
27 typedef void (JabberDiscoInfoCallback)(JabberStream *js, const char *who, | 27 typedef void (JabberDiscoInfoCallback)(JabberStream *js, const char *who, |
28 JabberCapabilities capabilities, gpointer data); | 28 JabberCapabilities capabilities, gpointer data); |
29 | 29 |
30 void jabber_disco_info_parse(JabberStream *js, xmlnode *packet); | 30 void jabber_disco_info_parse(JabberStream *js, const char *from, |
31 void jabber_disco_items_parse(JabberStream *js, xmlnode *packet); | 31 JabberIqType type, const char *id, xmlnode *in_query); |
32 void jabber_disco_items_parse(JabberStream *js, const char *from, | |
33 JabberIqType type, const char *id, xmlnode *query); | |
32 | 34 |
33 void jabber_disco_items_server(JabberStream *js); | 35 void jabber_disco_items_server(JabberStream *js); |
34 | 36 |
35 void jabber_disco_info_do(JabberStream *js, const char *who, | 37 void jabber_disco_info_do(JabberStream *js, const char *who, |
36 JabberDiscoInfoCallback *callback, gpointer data); | 38 JabberDiscoInfoCallback *callback, gpointer data); |