diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index e2207336..151f5715 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -644,12 +644,14 @@ Tox *tox_new(uint8_t ipv6enabled); | |||
644 | * Free all datastructures. */ | 644 | * Free all datastructures. */ |
645 | void tox_kill(Tox *tox); | 645 | void tox_kill(Tox *tox); |
646 | 646 | ||
647 | /* Return the optimal interval in milliseconds between tox_do() calls. | 647 | /* Return the time in milliseconds before tox_do() should be called again |
648 | * This function should be called after every tox_do() call for best performance. | 648 | * for optimal performance. |
649 | * | ||
650 | * returns time (in ms) before the next tox_do() needs to be run on success. | ||
649 | */ | 651 | */ |
650 | uint32_t tox_do_run_interval(Tox *tox); | 652 | uint32_t tox_do_interval(Tox *tox); |
651 | 653 | ||
652 | /* The main loop that needs to be run in intervals of tox_do_run_interval() ms. */ | 654 | /* The main loop that needs to be run in intervals of tox_do_interval() ms. */ |
653 | void tox_do(Tox *tox); | 655 | void tox_do(Tox *tox); |
654 | 656 | ||
655 | /* SAVING AND LOADING FUNCTIONS: */ | 657 | /* SAVING AND LOADING FUNCTIONS: */ |