weechat-xmpp/connection.hh

16 lines
547 B
C++
Raw Normal View History

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/.
2022-01-11 23:23:54 +00:00
#pragma once
#include <strophe.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);