summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 1f251085..278a19cd 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -42,6 +42,9 @@ extern "C" {
42 42
43#define TOX_ENABLE_IPV6_DEFAULT 1 43#define TOX_ENABLE_IPV6_DEFAULT 1
44 44
45#define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave"
46#define TOX_ENC_SAVE_MAGIC_LENGTH 8
47
45/* Errors for m_addfriend 48/* Errors for m_addfriend
46 * FAERR - Friend Add Error 49 * FAERR - Friend Add Error
47 */ 50 */
@@ -720,6 +723,7 @@ void tox_save(const Tox *tox, uint8_t *data);
720 * 723 *
721 * returns 0 on success 724 * returns 0 on success
722 * returns -1 on failure 725 * returns -1 on failure
726 * returns +1 on finding encrypted save data
723 */ 727 */
724int tox_load(Tox *tox, const uint8_t *data, uint32_t length); 728int tox_load(Tox *tox, const uint8_t *data, uint32_t length);
725 729