diff options
author | saneki <fake.saneki@gmail.com> | 2014-09-09 11:34:39 -0500 |
---|---|---|
committer | saneki <fake.saneki@gmail.com> | 2014-09-09 11:34:39 -0500 |
commit | f771bfbe30517ad2a01817eeaf5d16462b4913df (patch) | |
tree | a0afea2ee4b097cabdcd5a338bbae5ee5b66fe95 /toxcore/tox.h | |
parent | a0302b7acaef47805f93718630e501acdd3a3d00 (diff) |
Added tox_connect function, no connecting done during tox_load
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 1f251085..8a564e6b 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -723,6 +723,13 @@ void tox_save(const Tox *tox, uint8_t *data); | |||
723 | */ | 723 | */ |
724 | int tox_load(Tox *tox, const uint8_t *data, uint32_t length); | 724 | int tox_load(Tox *tox, const uint8_t *data, uint32_t length); |
725 | 725 | ||
726 | /* Perform connections after messenger has been loaded from file. | ||
727 | * | ||
728 | * returns 0 on success | ||
729 | * returns -1 on failure | ||
730 | */ | ||
731 | int tox_connect(Tox *tox); | ||
732 | |||
726 | #ifdef __cplusplus | 733 | #ifdef __cplusplus |
727 | } | 734 | } |
728 | #endif | 735 | #endif |