2021-06-26 14:17:00 +00:00
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, version 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
2021-06-28 01:17:02 +00:00
|
|
|
#ifndef _WEECHAT_XMPP_CONNECTION_H_
|
|
|
|
#define _WEECHAT_XMPP_CONNECTION_H_
|
2021-06-26 14:17:00 +00:00
|
|
|
|
2021-06-30 06:26:06 +00:00
|
|
|
void connection__init();
|
2021-06-26 14:17:00 +00:00
|
|
|
|
2021-06-30 08:54:59 +00:00
|
|
|
int connection__connect(struct t_account *account, xmpp_conn_t **connection,
|
|
|
|
const char* jid, const char* password, int tls);
|
2021-06-26 14:17:00 +00:00
|
|
|
|
2021-06-30 06:26:06 +00:00
|
|
|
void connection__process(xmpp_ctx_t *context, xmpp_conn_t *connection,
|
|
|
|
const unsigned long timeout);
|
2021-06-27 22:51:05 +00:00
|
|
|
|
2021-06-28 01:17:02 +00:00
|
|
|
#endif /*WEECHAT_XMPP_CONNECTION_H*/
|