libpurple/protocols/jabber/jabber.h

branch
cpw.malu.xmpp.idle
changeset 26725
fbfc67bd9fd6
parent 26677
04c4a7a7865f
parent 26703
17f9a4bef2a3
child 26796
c2f378bc4183
equal deleted inserted replaced
26677:04c4a7a7865f 26725:fbfc67bd9fd6
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 */ 21 */
22 #ifndef _PURPLE_JABBER_H_ 22 #ifndef PURPLE_JABBER_H_
23 #define _PURPLE_JABBER_H_ 23 #define PURPLE_JABBER_H_
24 24
25 typedef enum { 25 typedef enum {
26 JABBER_CAP_NONE = 0, 26 JABBER_CAP_NONE = 0,
27 JABBER_CAP_XHTML = 1 << 0, 27 JABBER_CAP_XHTML = 1 << 0,
28 JABBER_CAP_COMPOSING = 1 << 1, 28 JABBER_CAP_COMPOSING = 1 << 1,
58 #include "mediamanager.h" 58 #include "mediamanager.h"
59 #include "roomlist.h" 59 #include "roomlist.h"
60 #include "sslconn.h" 60 #include "sslconn.h"
61 #include "dnsquery.h" 61 #include "dnsquery.h"
62 62
63 #include "iq.h"
63 #include "jutil.h" 64 #include "jutil.h"
64 #include "xmlnode.h" 65 #include "xmlnode.h"
65 #include "buddy.h" 66 #include "buddy.h"
66 67
67 #ifdef HAVE_CYRUS_SASL 68 #ifdef HAVE_CYRUS_SASL
280 void jabber_send(JabberStream *js, xmlnode *data); 281 void jabber_send(JabberStream *js, xmlnode *data);
281 void jabber_send_raw(JabberStream *js, const char *data, int len); 282 void jabber_send_raw(JabberStream *js, const char *data, int len);
282 283
283 void jabber_stream_set_state(JabberStream *js, JabberStreamState state); 284 void jabber_stream_set_state(JabberStream *js, JabberStreamState state);
284 285
285 void jabber_register_parse(JabberStream *js, xmlnode *packet); 286 void jabber_register_parse(JabberStream *js, const char *from,
287 JabberIqType type, const char *id, xmlnode *query);
286 void jabber_register_start(JabberStream *js); 288 void jabber_register_start(JabberStream *js);
287 289
288 char *jabber_get_next_id(JabberStream *js); 290 char *jabber_get_next_id(JabberStream *js);
289 291
290 /** Parse an error into a human-readable string and optionally a disconnect 292 /** Parse an error into a human-readable string and optionally a disconnect
326 PurpleMediaSessionType type); 328 PurpleMediaSessionType type);
327 PurpleMediaCaps jabber_get_media_caps(PurpleConnection *gc, const char *who); 329 PurpleMediaCaps jabber_get_media_caps(PurpleConnection *gc, const char *who);
328 void jabber_register_commands(void); 330 void jabber_register_commands(void);
329 void jabber_init_plugin(PurplePlugin *plugin); 331 void jabber_init_plugin(PurplePlugin *plugin);
330 332
331 #endif /* _PURPLE_JABBER_H_ */ 333 #endif /* PURPLE_JABBER_H_ */

mercurial