summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2017-04-16 05:57:34 -0400
committerMaxim Biro <nurupo.contributions@gmail.com>2017-04-22 15:31:25 -0400
commitc25e3d2d7c08201f74768fda9a650a7b80c8ec88 (patch)
tree684fc07f3d6345fb6204d267489ac3344d240f5d /toxcore/tox.h
parentc7f63737ebfff2d1948ec9d6d92295a75d75cae5 (diff)
Revert "initial version of tox_loop"
This reverts commit 200ee1cace2f17537e6982ac447ea65d7c7a00b3.
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 0be019cd..75757b6f 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -990,42 +990,6 @@ uint32_t tox_iteration_interval(const Tox *tox);
990 */ 990 */
991void tox_iterate(Tox *tox, void *user_data); 991void tox_iterate(Tox *tox, void *user_data);
992 992
993/**
994 * Run tox_iterate() any time a packet arrives, only returns after tox_loop_stop().
995 */
996uint32_t tox_loop(Tox *tox, void *user_data);
997
998/**
999 * Tell tox_loop() to return.
1000 */
1001void tox_loop_stop(Tox *tox);
1002
1003/**
1004 * No extra parameters.
1005 */
1006typedef void tox_loop_begin_cb(Tox *tox, void *user_data);
1007
1008
1009/**
1010 * Set the callback for the `loop_begin` event. Pass NULL to unset.
1011 *
1012 * Callback ran when tox_loop() calls into tox_iterate(), the client can lock a mutex here.
1013 */
1014void tox_callback_loop_begin(Tox *tox, tox_loop_begin_cb *callback);
1015
1016/**
1017 * No extra parameters.
1018 */
1019typedef void tox_loop_end_cb(Tox *tox, void *user_data);
1020
1021
1022/**
1023 * Set the callback for the `loop_end` event. Pass NULL to unset.
1024 *
1025 * Callback ran when tox_loop() is finished with tox_iterate(), the client can unlock the mutex here.
1026 */
1027void tox_callback_loop_end(Tox *tox, tox_loop_end_cb *callback);
1028
1029 993
1030/******************************************************************************* 994/*******************************************************************************
1031 * 995 *