summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index b2aadd39..2b412ce8 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -928,3 +928,10 @@ int tox_load(Tox *tox, const uint8_t *data, uint32_t length)
928 Messenger *m = tox; 928 Messenger *m = tox;
929 return messenger_load(m, data, length); 929 return messenger_load(m, data, length);
930} 930}
931
932/* Connect after loading the messenger from file */
933int tox_connect(Tox *tox)
934{
935 Messenger *m = tox;
936 return messenger_connect(m);
937}