diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-09-14 17:50:50 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-09-14 17:50:50 +0000 |
commit | c88a84620596987aeb21e55b4eb3d71a4bf4d5d1 (patch) | |
tree | 93fb30e0da6e173a257fdaa93bb50e696f660426 /protocols/Tox/tox/include | |
parent | 50096f107de419136ec3eb8a692759651994bb14 (diff) |
Tox:
- updated protocol icons
- updated tox core
git-svn-id: http://svn.miranda-ng.org/main/trunk@10447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/tox/include')
-rw-r--r-- | protocols/Tox/tox/include/tox.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |