summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index af6f3360..50e838f3 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -690,6 +690,20 @@ struct Tox_Options {
690 */ 690 */
691 void *log_user_data; 691 void *log_user_data;
692 692
693
694 /**
695 * These options are experimental, so avoid writing code that depends on
696 * them. Options marked "experimental" may change their behaviour or go away
697 * entirely in the future, or may be renamed to something non-experimental
698 * if they become part of the supported API.
699 */
700 /**
701 * Make public API functions thread-safe using a per-instance lock.
702 *
703 * Default: false.
704 */
705 bool experimental_thread_safety;
706
693}; 707};
694 708
695 709
@@ -753,6 +767,10 @@ void *tox_options_get_log_user_data(const struct Tox_Options *options);
753 767
754void tox_options_set_log_user_data(struct Tox_Options *options, void *user_data); 768void tox_options_set_log_user_data(struct Tox_Options *options, void *user_data);
755 769
770bool tox_options_get_experimental_thread_safety(const struct Tox_Options *options);
771
772void tox_options_set_experimental_thread_safety(struct Tox_Options *options, bool thread_safety);
773
756/** 774/**
757 * Initialises a Tox_Options object with the default options. 775 * Initialises a Tox_Options object with the default options.
758 * 776 *