1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Frameworks/libpurple.framework/Versions/0.6.2/Headers/bosh.h Fri Aug 21 13:25:11 2009 -0700
1.3 @@ -0,0 +1,40 @@
1.4 +/**
1.5 + * @file bosh.h Bidirectional-streams over Synchronous HTTP (BOSH) (XEP-0124 and XEP-0206)
1.6 + *
1.7 + * purple
1.8 + *
1.9 + * Copyright (C) 2008, Tobias Markmann <tmarkmann@googlemail.com>
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + *
1.21 + * You should have received a copy of the GNU General Public License
1.22 + * along with this program; if not, write to the Free Software
1.23 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
1.24 + */
1.25 +#ifndef PURPLE_JABBER_BOSH_H_
1.26 +#define PURPLE_JABBER_BOSH_H_
1.27 +
1.28 +typedef struct _PurpleBOSHConnection PurpleBOSHConnection;
1.29 +
1.30 +#include "jabber.h"
1.31 +
1.32 +void jabber_bosh_init(void);
1.33 +void jabber_bosh_uninit(void);
1.34 +
1.35 +PurpleBOSHConnection* jabber_bosh_connection_init(JabberStream *js, const char *url);
1.36 +void jabber_bosh_connection_destroy(PurpleBOSHConnection *conn);
1.37 +
1.38 +gboolean jabber_bosh_connection_is_ssl(PurpleBOSHConnection *conn);
1.39 +
1.40 +void jabber_bosh_connection_connect(PurpleBOSHConnection *conn);
1.41 +void jabber_bosh_connection_close(PurpleBOSHConnection *conn);
1.42 +void jabber_bosh_connection_send_raw(PurpleBOSHConnection *conn, const char *data);
1.43 +#endif /* PURPLE_JABBER_BOSH_H_ */