Mercurial > pidgin
diff libpurple/protocols/bonjour/jabber.h @ 18761:316be7e715c6
Update the Bonjour prpl to use libxml explicitly instead of the xml_node stuff. This allows us to deal with partial reads. I also fixed issues related to starting conversations with iChat and a couple other things. Fixes #2022,#1652
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 31 Jul 2007 23:23:25 +0000 |
parents | 6e4e2d234c3a |
children | 44b4e8bd759b |
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.h Tue Jul 31 23:20:56 2007 +0000 +++ b/libpurple/protocols/bonjour/jabber.h Tue Jul 31 23:23:25 2007 +0000 @@ -26,6 +26,10 @@ #ifndef _BONJOUR_JABBER_H_ #define _BONJOUR_JABBER_H_ +#include <libxml/parser.h> + +#include "xmlnode.h" + #include "account.h" #include "circbuffer.h" @@ -43,9 +47,12 @@ guint rx_handler; guint tx_handler; PurpleCircBuffer *tx_buf; - gboolean stream_started; + gboolean sent_stream_start; + gboolean recv_stream_start; PurpleProxyConnectData *connect_data; gpointer stream_data; + xmlParserCtxt *context; + xmlnode *current; } BonjourJabberConversation; /** @@ -60,6 +67,12 @@ void bonjour_jabber_close_conversation(BonjourJabberConversation *bconv); +void bonjour_jabber_stream_started(PurpleBuddy *pb); + +void bonjour_jabber_stream_ended(PurpleBuddy *pb); + +void bonjour_jabber_process_packet(PurpleBuddy *pb, xmlnode *packet); + void bonjour_jabber_stop(BonjourJabber *data); #endif /* _BONJOUR_JABBER_H_ */