From 41a5dbf4d9d937b5fe9df3c700e8c43c82f2343c Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 16 Dec 2017 20:26:23 +0300 Subject: Tox: (#1068) - moved to self compiled libtox - removed unused code (multimedia & chatrooms) - removed unneeded files & tools - version bump --- protocols/Tox/src/api_main.cpp | 131 ----------------------------------------- 1 file changed, 131 deletions(-) delete mode 100644 protocols/Tox/src/api_main.cpp (limited to 'protocols/Tox/src/api_main.cpp') diff --git a/protocols/Tox/src/api_main.cpp b/protocols/Tox/src/api_main.cpp deleted file mode 100644 index 3d46576925..0000000000 --- a/protocols/Tox/src/api_main.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include "stdafx.h" - -/* MAIN FUNCTIONS */ - -bool tox_version_is_compatible(uint32_t major, uint32_t minor, uint32_t patch) -{ - return CreateFunction(__FUNCTION__)(major, minor, patch); -} - -struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error) -{ - return CreateFunction(__FUNCTION__)(error); -} - -void tox_options_default(struct Tox_Options *options) -{ - CreateFunction(__FUNCTION__)(options); -} - -void tox_options_free(struct Tox_Options *options) -{ - CreateFunction(__FUNCTION__)(options); -} - -Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error) -{ - return CreateFunction(__FUNCTION__)(options, error); -} - -void tox_kill(Tox *tox) -{ - CreateFunction(__FUNCTION__)(tox); -} - -void tox_self_get_address(const Tox *tox, uint8_t *address) -{ - CreateFunction(__FUNCTION__)(tox, address); -} - -bool tox_self_set_name(Tox *tox, const uint8_t *name, size_t length, TOX_ERR_SET_INFO *error) -{ - return CreateFunction(__FUNCTION__)(tox, name, length, error); -} - -void tox_self_get_name(const Tox *tox, uint8_t *name) -{ - CreateFunction(__FUNCTION__)(tox, name); -} - -int tox_get_self_name_size(const Tox *tox) -{ - return CreateFunction(__FUNCTION__)(tox); -} - -size_t tox_self_get_status_message_size(const Tox *tox) -{ - return CreateFunction(__FUNCTION__)(tox); -} - -bool tox_self_set_status_message(Tox *tox, const uint8_t *status, size_t length, TOX_ERR_SET_INFO *error) -{ - return CreateFunction(__FUNCTION__)(tox, status, length, error); -} - -void tox_self_set_status(Tox *tox, TOX_USER_STATUS user_status) -{ - CreateFunction(__FUNCTION__)(tox, user_status); -} - -void tox_self_get_status_message(const Tox *tox, uint8_t *status) -{ - CreateFunction(__FUNCTION__)(tox, status); -} - -int tox_get_self_status_message(const Tox *tox, uint8_t *buf, uint32_t maxlen) -{ - return CreateFunction(__FUNCTION__)(tox, buf, maxlen); -} - -uint8_t tox_get_self_user_status(const Tox *tox) -{ - return CreateFunction(__FUNCTION__)(tox); -} - -/* SAVING AND LOADING FUNCTIONS */ - -size_t tox_get_savedata_size(const Tox *tox) -{ - return CreateFunction(__FUNCTION__)(tox); -} - -void tox_get_savedata(const Tox *tox, uint8_t *data) -{ - CreateFunction(__FUNCTION__)(tox, data); -} - -int tox_load(Tox *tox, const uint8_t *data, uint32_t length) -{ - return CreateFunction(__FUNCTION__)(tox, data, length); -} - -/* ADVANCED FUNCTIONS (If you don't know what they do you can safely ignore them.) */ -/* -uint32_t tox_get_nospam(const Tox *tox) -{ -} - -void tox_set_nospam(Tox *tox, uint32_t nospam) -{ -} - -void tox_get_keys(Tox *tox, uint8_t *public_key, uint8_t *secret_key) -{ -} - -int tox_lossy_packet_registerhandler(Tox *tox, int32_t friendnumber, uint8_t byte, int(*packet_handler_callback)(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *object), void *object) -{ -} - -int tox_send_lossy_packet(const Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t length) -{ -} - -int tox_lossless_packet_registerhandler(Tox *tox, int32_t friendnumber, uint8_t byte, int(*packet_handler_callback)(Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t len, void *object), void *object) -{ -} - -int tox_send_lossless_packet(const Tox *tox, int32_t friendnumber, const uint8_t *data, uint32_t length) -{ -} -*/ \ No newline at end of file -- cgit v1.2.3