summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authorMaxim Biro <nurupo.contributions@gmail.com>2016-12-08 03:03:04 -0500
committerMaxim Biro <nurupo.contributions@gmail.com>2016-12-14 21:48:21 -0500
commit68be33840a6a9b2677a6ab43068689c8e572e832 (patch)
tree8a0370fe510cdac359696843f0b1f139ec5641b4 /toxcore/tox.h
parentbbdd7982563b7d8f89fcd3b7297b5fbdf21fc57f (diff)
Add option to disable local peer discovery
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 5057e148..934145a3 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -522,6 +522,14 @@ struct Tox_Options {
522 522
523 523
524 /** 524 /**
525 * Enable local network peer discovery.
526 *
527 * Disabling this will cause Tox to not look for peers on the local network.
528 */
529 bool local_discovery_enabled;
530
531
532 /**
525 * Pass communications through a proxy. 533 * Pass communications through a proxy.
526 */ 534 */
527 TOX_PROXY_TYPE proxy_type; 535 TOX_PROXY_TYPE proxy_type;
@@ -635,6 +643,10 @@ bool tox_options_get_udp_enabled(const struct Tox_Options *options);
635 643
636void tox_options_set_udp_enabled(struct Tox_Options *options, bool udp_enabled); 644void tox_options_set_udp_enabled(struct Tox_Options *options, bool udp_enabled);
637 645
646bool tox_options_get_local_discovery_enabled(const struct Tox_Options *options);
647
648void tox_options_set_local_discovery_enabled(struct Tox_Options *options, bool local_discovery_enabled);
649
638TOX_PROXY_TYPE tox_options_get_proxy_type(const struct Tox_Options *options); 650TOX_PROXY_TYPE tox_options_get_proxy_type(const struct Tox_Options *options);
639 651
640void tox_options_set_proxy_type(struct Tox_Options *options, TOX_PROXY_TYPE type); 652void tox_options_set_proxy_type(struct Tox_Options *options, TOX_PROXY_TYPE type);