summaryrefslogtreecommitdiff
path: root/toxcore/tox_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/tox_api.c')
-rw-r--r--toxcore/tox_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/toxcore/tox_api.c b/toxcore/tox_api.c
index 025c7456..8503f237 100644
--- a/toxcore/tox_api.c
+++ b/toxcore/tox_api.c
@@ -58,6 +58,7 @@ ACCESSORS(size_t, savedata_, length)
58ACCESSORS(tox_log_cb *, log_, callback) 58ACCESSORS(tox_log_cb *, log_, callback)
59ACCESSORS(void *, log_, user_data) 59ACCESSORS(void *, log_, user_data)
60ACCESSORS(bool,, local_discovery_enabled) 60ACCESSORS(bool,, local_discovery_enabled)
61ACCESSORS(bool,, experimental_thread_safety)
61 62
62const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options) 63const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options)
63{ 64{
@@ -80,6 +81,7 @@ void tox_options_default(struct Tox_Options *options)
80 tox_options_set_proxy_type(options, TOX_PROXY_TYPE_NONE); 81 tox_options_set_proxy_type(options, TOX_PROXY_TYPE_NONE);
81 tox_options_set_hole_punching_enabled(options, true); 82 tox_options_set_hole_punching_enabled(options, true);
82 tox_options_set_local_discovery_enabled(options, true); 83 tox_options_set_local_discovery_enabled(options, true);
84 tox_options_set_experimental_thread_safety(options, false);
83 } 85 }
84} 86}
85 87