Migrate certificates, icons, logs to XDG dirs
[pidgin-git.git] / libpurple / protocols / jabber / bosh.h
blobdda6161131d805ce36bb87f849d34c3f033c5c53
1 /**
2 * @file bosh.h Bidirectional-streams over Synchronous HTTP (BOSH)
3 * (XEP-0124 and XEP-0206)
5 * purple
7 * Purple is the legal property of its developers, whose names are too numerous
8 * to list here. Please refer to the COPYRIGHT file distributed with this
9 * source distribution.
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 #ifndef PURPLE_JABBER_BOSH_H_
26 #define PURPLE_JABBER_BOSH_H_
28 typedef struct _PurpleJabberBOSHConnection PurpleJabberBOSHConnection;
30 #include "jabber.h"
32 void
33 jabber_bosh_init(void);
35 void
36 jabber_bosh_uninit(void);
38 PurpleJabberBOSHConnection *
39 jabber_bosh_connection_new(JabberStream *js, const gchar *url);
41 void
42 jabber_bosh_connection_destroy(PurpleJabberBOSHConnection *conn);
44 gboolean
45 jabber_bosh_connection_is_ssl(const PurpleJabberBOSHConnection *conn);
47 void
48 jabber_bosh_connection_send(PurpleJabberBOSHConnection *conn,
49 const gchar *data);
51 void
52 jabber_bosh_connection_send_keepalive(PurpleJabberBOSHConnection *conn);
54 #endif /* PURPLE_JABBER_BOSH_H_ */