From f1f8a71bd4df7f239e28a9625b82ee02428c3f3f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 3 Jan 2015 08:12:27 +0000 Subject: Tox: work commit - removed *.lib and lib generator - disabled profile encryption and import - loading tox profile on connection - project reordering - http proxy support git-svn-id: http://svn.miranda-ng.org/main/trunk@11730 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/api_connection.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 protocols/Tox/src/api_connection.cpp (limited to 'protocols/Tox/src/api_connection.cpp') diff --git a/protocols/Tox/src/api_connection.cpp b/protocols/Tox/src/api_connection.cpp new file mode 100644 index 0000000000..3b3ffb4143 --- /dev/null +++ b/protocols/Tox/src/api_connection.cpp @@ -0,0 +1,28 @@ +#include "common.h" + +/* CONNECTION FUNCTIONS */ + +int tox_bootstrap_from_address(Tox *tox, const char *address, uint16_t port, const uint8_t *public_key) +{ + return CreateFunction(__FUNCTION__)(tox, address, port, public_key); +} + +int tox_add_tcp_relay(Tox *tox, const char *address, uint16_t port, const uint8_t *public_key) +{ + return CreateFunction(__FUNCTION__)(tox, address, port, public_key); +} + +int tox_isconnected(const Tox *tox) +{ + return CreateFunction(__FUNCTION__)(tox); +} + +uint32_t tox_do_interval(Tox *tox) +{ + return CreateFunction(__FUNCTION__)(tox); +} + +void tox_do(Tox *tox) +{ + CreateFunction(__FUNCTION__)(tox); +} \ No newline at end of file -- cgit v1.2.3