summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/api_connection.cpp
diff options
context:
space:
mode:
authorAlex <aunsane@gmail.com>2017-12-16 20:26:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-16 20:26:23 +0300
commit41a5dbf4d9d937b5fe9df3c700e8c43c82f2343c (patch)
treed765c53432332e29b4e088d12db500e8aea6f2cb /protocols/Tox/src/api_connection.cpp
parentfa47233bca994ad009ad3536e1eeea3abd03ca39 (diff)
Tox: (#1068)
- moved to self compiled libtox - removed unused code (multimedia & chatrooms) - removed unneeded files & tools - version bump
Diffstat (limited to 'protocols/Tox/src/api_connection.cpp')
-rw-r--r--protocols/Tox/src/api_connection.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/protocols/Tox/src/api_connection.cpp b/protocols/Tox/src/api_connection.cpp
deleted file mode 100644
index 1ed6b51d40..0000000000
--- a/protocols/Tox/src/api_connection.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
-#include "stdafx.h"
-
-/* CONNECTION FUNCTIONS */
-
-bool tox_bootstrap(Tox *tox, const char *host, uint16_t port, const uint8_t *public_key, TOX_ERR_BOOTSTRAP *error)
-{
- return CreateFunction<bool(*)(Tox*, const char*, uint16_t, const uint8_t*, TOX_ERR_BOOTSTRAP*)>(__FUNCTION__)(tox, host, port, public_key, error);
-}
-
-bool tox_add_tcp_relay(Tox *tox, const char *host, uint16_t port, const uint8_t *public_key, TOX_ERR_BOOTSTRAP *error)
-{
- return CreateFunction<bool(*)(Tox*, const char*, uint16_t, const uint8_t*, TOX_ERR_BOOTSTRAP*)>(__FUNCTION__)(tox, host, port, public_key, error);
-}
-
-TOX_CONNECTION tox_self_get_connection_status(const Tox *tox)
-{
- return CreateFunction<TOX_CONNECTION(*)(const Tox*)>(__FUNCTION__)(tox);
-}
-
-uint32_t tox_iteration_interval(const Tox *tox)
-{
- return CreateFunction<uint32_t(*)(const Tox*)>(__FUNCTION__)(tox);
-}
-
-void tox_iterate(Tox *tox, void *user_data)
-{
- CreateFunction<int(*)(const Tox*, void*)>(__FUNCTION__)(tox, user_data);
-} \ No newline at end of file