summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authorsaneki <fake.saneki@gmail.com>2014-09-09 11:34:39 -0500
committersaneki <fake.saneki@gmail.com>2014-09-09 11:34:39 -0500
commitf771bfbe30517ad2a01817eeaf5d16462b4913df (patch)
treea0afea2ee4b097cabdcd5a338bbae5ee5b66fe95 /toxcore/tox.h
parenta0302b7acaef47805f93718630e501acdd3a3d00 (diff)
Added tox_connect function, no connecting done during tox_load
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h7
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 */
724int tox_load(Tox *tox, const uint8_t *data, uint32_t length); 724int 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 */
731int tox_connect(Tox *tox);
732
726#ifdef __cplusplus 733#ifdef __cplusplus
727} 734}
728#endif 735#endif