Mercurial > pidgin
diff libpurple/protocols/jabber/jabber.h @ 20814:bde477ec6a71
Stop jabber setting wants_to_die itself. This involved plumbing disconnection
reasons into jabber_parse_error in a slightly dubious fashion. I'd appreciate
someone sanity-checking this rev.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Tue, 09 Oct 2007 13:32:58 +0000 |
parents | be2538a92099 |
children | ba41f2a60253 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.h Tue Oct 09 13:25:47 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.h Tue Oct 09 13:32:58 2007 +0000 @@ -216,7 +216,14 @@ char *jabber_get_next_id(JabberStream *js); -char *jabber_parse_error(JabberStream *js, xmlnode *packet); +/** Parse an error into a human-readable string and optionally a disconnect + * reason. + * @param js the stream on which the error occurred. + * @param packet the error packet + * @param reason where to store the disconnection reason, or @c NULL if you + * don't care or you don't intend to close the connection. + */ +char *jabber_parse_error(JabberStream *js, xmlnode *packet, PurpleDisconnectReason *reason); void jabber_add_feature(const gchar *shortname, const gchar *namespace, JabberFeatureEnabled cb); /* cb may be NULL */ void jabber_remove_feature(const gchar *shortname);