Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/ping.h @ 25933: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 | ced3d4ab745a |
children | 5767b7698c73 |
comparison
equal
deleted
inserted
replaced
25932:969c89c09ad7 | 25933:050052891c55 |
---|---|
21 */ | 21 */ |
22 #ifndef _PURPLE_JABBER_PING_H_ | 22 #ifndef _PURPLE_JABBER_PING_H_ |
23 #define _PURPLE_JABBER_PING_H_ | 23 #define _PURPLE_JABBER_PING_H_ |
24 | 24 |
25 #include "jabber.h" | 25 #include "jabber.h" |
26 #include "iq.h" | |
26 #include "xmlnode.h" | 27 #include "xmlnode.h" |
27 | 28 |
28 void jabber_ping_parse(JabberStream *js, xmlnode *packet); | 29 void jabber_ping_parse(JabberStream *js, const char *from, |
30 JabberIqType, const char *id, xmlnode *child); | |
29 gboolean jabber_ping_jid(JabberStream *js, const char *jid); | 31 gboolean jabber_ping_jid(JabberStream *js, const char *jid); |
30 | 32 |
31 #endif /* _PURPLE_JABBER_PING_H_ */ | 33 #endif /* _PURPLE_JABBER_PING_H_ */ |