diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index 3278a9d3..7b8af15e 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -491,6 +491,7 @@ void tox_do(Tox *tox); | |||
491 | * returns 1 on success | 491 | * returns 1 on success |
492 | * returns 0 on failure (length is insufficient) | 492 | * returns 0 on failure (length is insufficient) |
493 | * | 493 | * |
494 | * | ||
494 | * tox_wait_execute(): function can be called asynchronously | 495 | * tox_wait_execute(): function can be called asynchronously |
495 | * Waits for something to happen on the socket for up to milliseconds milliseconds. | 496 | * Waits for something to happen on the socket for up to milliseconds milliseconds. |
496 | * *** Function MUSTN'T poll. *** | 497 | * *** Function MUSTN'T poll. *** |
@@ -501,9 +502,17 @@ void tox_do(Tox *tox); | |||
501 | * returns 0 if the timeout was reached | 502 | * returns 0 if the timeout was reached |
502 | * returns -1 if data was NULL or len too short | 503 | * returns -1 if data was NULL or len too short |
503 | * | 504 | * |
505 | * | ||
506 | * tox_wait_cleanup(): function should be called under lock | ||
507 | * Stores results from tox_wait_execute(). | ||
508 | * | ||
509 | * data[]/len shall be the exact same as given to tox_wait_execute() | ||
510 | * | ||
504 | */ | 511 | */ |
505 | int tox_wait_prepare(Tox *tox, uint8_t *data, uint16_t *lenptr); | 512 | int tox_wait_prepare(Tox *tox, uint8_t *data, uint16_t *lenptr); |
506 | int tox_wait_execute(Tox *tox, uint8_t *data, uint16_t len, uint16_t milliseconds); | 513 | int tox_wait_execute(Tox *tox, uint8_t *data, uint16_t len, uint16_t milliseconds); |
514 | void tox_wait_cleanup(Tox *tox, uint8_t *data, uint16_t len); | ||
515 | |||
507 | 516 | ||
508 | /* SAVING AND LOADING FUNCTIONS: */ | 517 | /* SAVING AND LOADING FUNCTIONS: */ |
509 | 518 | ||