summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.h')
-rw-r--r--toxcore/Messenger.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index 0ff14de4..27e2c502 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -455,6 +455,18 @@ void cleanupMessenger(Messenger *M);
455/* The main loop that needs to be run at least 20 times per second. */ 455/* The main loop that needs to be run at least 20 times per second. */
456void doMessenger(Messenger *m); 456void doMessenger(Messenger *m);
457 457
458/*
459 * Waits for something to happen on the socket for up to milliseconds milliseconds
460 * *** Function MUSTN'T poll. ***
461 * The function mustn't modify anything at all, so it can be called completely
462 * asynchronously without any worry.
463 *
464 * returns 0 if the timeout was reached
465 * returns 1 if there is socket activity (i.e. tox_do() should be called)
466 *
467 */
468int waitMessenger(Messenger *m, uint16_t milliseconds);
469
458/* SAVING AND LOADING FUNCTIONS: */ 470/* SAVING AND LOADING FUNCTIONS: */
459 471
460/* return size of the messenger data (for saving). */ 472/* return size of the messenger data (for saving). */
@@ -487,3 +499,4 @@ uint32_t copy_friendlist(Messenger *m, int *out_list, uint32_t list_size);
487int get_friendlist(Messenger *m, int **out_list, uint32_t *out_list_length); 499int get_friendlist(Messenger *m, int **out_list, uint32_t *out_list_length);
488 500
489#endif 501#endif
502