diff options
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 12 |
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 | ||
636 | void tox_options_set_udp_enabled(struct Tox_Options *options, bool udp_enabled); | 644 | void tox_options_set_udp_enabled(struct Tox_Options *options, bool udp_enabled); |
637 | 645 | ||
646 | bool tox_options_get_local_discovery_enabled(const struct Tox_Options *options); | ||
647 | |||
648 | void tox_options_set_local_discovery_enabled(struct Tox_Options *options, bool local_discovery_enabled); | ||
649 | |||
638 | TOX_PROXY_TYPE tox_options_get_proxy_type(const struct Tox_Options *options); | 650 | TOX_PROXY_TYPE tox_options_get_proxy_type(const struct Tox_Options *options); |
639 | 651 | ||
640 | void tox_options_set_proxy_type(struct Tox_Options *options, TOX_PROXY_TYPE type); | 652 | void tox_options_set_proxy_type(struct Tox_Options *options, TOX_PROXY_TYPE type); |