From c88a84620596987aeb21e55b4eb3d71a4bf4d5d1 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 14 Sep 2014 17:50:50 +0000 Subject: Tox: - updated protocol icons - updated tox core git-svn-id: http://svn.miranda-ng.org/main/trunk@10447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/tox/include/tox.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols/Tox/tox/include/tox.h') diff --git a/protocols/Tox/tox/include/tox.h b/protocols/Tox/tox/include/tox.h index 1f2510856c..278a19cdde 100644 --- a/protocols/Tox/tox/include/tox.h +++ b/protocols/Tox/tox/include/tox.h @@ -42,6 +42,9 @@ extern "C" { #define TOX_ENABLE_IPV6_DEFAULT 1 +#define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave" +#define TOX_ENC_SAVE_MAGIC_LENGTH 8 + /* Errors for m_addfriend * FAERR - Friend Add Error */ @@ -720,6 +723,7 @@ void tox_save(const Tox *tox, uint8_t *data); * * returns 0 on success * returns -1 on failure + * returns +1 on finding encrypted save data */ int tox_load(Tox *tox, const uint8_t *data, uint32_t length); -- cgit v1.2.3