summaryrefslogtreecommitdiff
path: root/toxcore/tox.api.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.api.h
parentc7f63737ebfff2d1948ec9d6d92295a75d75cae5 (diff)
Revert "initial version of tox_loop"
This reverts commit 200ee1cace2f17537e6982ac447ea65d7c7a00b3.
Diffstat (limited to 'toxcore/tox.api.h')
-rw-r--r--toxcore/tox.api.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index 0bcf40e1..281cb998 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -838,38 +838,6 @@ const uint32_t iteration_interval();
838 */ 838 */
839void iterate(any user_data); 839void iterate(any user_data);
840 840
841/**
842 * Run $iterate() any time a packet arrives, only returns after ${loop.stop}().
843 */
844uint32_t loop(any user_data);
845
846namespace loop {
847 /**
848 * Tell $loop() to return.
849 */
850 void stop();
851
852 /**
853 * Callback ran when $loop() calls into $iterate(), the client can lock a mutex here.
854 */
855 event begin const {
856 /**
857 * No extra parameters.
858 */
859 typedef void();
860 }
861
862 /**
863 * Callback ran when $loop() is finished with $iterate(), the client can unlock the mutex here.
864 */
865 event end const {
866 /**
867 * No extra parameters.
868 */
869 typedef void();
870 }
871}
872
873 841
874/******************************************************************************* 842/*******************************************************************************
875 * 843 *