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_dns.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 protocols/Tox/src/api_dns.cpp (limited to 'protocols/Tox/src/api_dns.cpp') diff --git a/protocols/Tox/src/api_dns.cpp b/protocols/Tox/src/api_dns.cpp new file mode 100644 index 0000000000..3b4e601d9a --- /dev/null +++ b/protocols/Tox/src/api_dns.cpp @@ -0,0 +1,23 @@ +#include "common.h" + +/* DNS TOXID RESOILVING FUNCTIONS */ + +void *tox_dns3_new(uint8_t *server_public_key) +{ + return CreateFunction(__FUNCTION__)(server_public_key); +} + +void tox_dns3_kill(void *dns3_object) +{ + CreateFunction(__FUNCTION__)(dns3_object); +} + +int tox_generate_dns3_string(void *dns3_object, uint8_t *string, uint16_t string_max_len, uint32_t *request_id, uint8_t *name, uint8_t name_len) +{ + return CreateFunction(__FUNCTION__)(dns3_object, string, string_max_len, request_id, name, name_len); +} + +int tox_decrypt_dns3_TXT(void *dns3_object, uint8_t *tox_id, uint8_t *id_record, uint32_t id_record_len, uint32_t request_id) +{ + return CreateFunction(__FUNCTION__)(dns3_object, tox_id, id_record, id_record_len, request_id); +} \ No newline at end of file -- cgit v1.2.3