Replace functions which called once with their bodies
[pidgin-git.git] / libpurple / protocols / jabber / bosh.h
bloba6a0dd59c833d4470701823eefb7be2224b6fc5a
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
26 #ifndef PURPLE_JABBER_BOSH_H
27 #define PURPLE_JABBER_BOSH_H
29 typedef struct _PurpleJabberBOSHConnection PurpleJabberBOSHConnection;
31 #include "jabber.h"
33 void
34 jabber_bosh_init(void);
36 void
37 jabber_bosh_uninit(void);
39 PurpleJabberBOSHConnection *
40 jabber_bosh_connection_new(JabberStream *js, const gchar *url);
42 void
43 jabber_bosh_connection_destroy(PurpleJabberBOSHConnection *conn);
45 gboolean
46 jabber_bosh_connection_is_ssl(const PurpleJabberBOSHConnection *conn);
48 void
49 jabber_bosh_connection_send(PurpleJabberBOSHConnection *conn,
50 const gchar *data);
52 void
53 jabber_bosh_connection_send_keepalive(PurpleJabberBOSHConnection *conn);
55 #endif /* PURPLE_JABBER_BOSH_H */