diff options
author | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-11-11 03:10:24 -0800 |
---|---|---|
committer | Gregory Mullen (grayhatter) <greg@grayhatter.com> | 2016-11-24 17:38:34 -0800 |
commit | ad517eb1df8841db52a45c7ac9ecf5976a290d57 (patch) | |
tree | 6e0d82599a6c1b0fd819ecf84e4abc82aa41b02e /toxcore/tox.h | |
parent | 19711d0fd0e2c181c3fe9df692b15f57390420d1 (diff) |
add NAT hole punching level to Tox API
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r-- | toxcore/tox.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index ef738422..d6f6fb2f 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -576,6 +576,12 @@ struct Tox_Options { | |||
576 | 576 | ||
577 | 577 | ||
578 | /** | 578 | /** |
579 | * Enables or disables UDP hole-punching in toxcore. (Default: enabled). | ||
580 | */ | ||
581 | bool hole_punching_enabled; | ||
582 | |||
583 | |||
584 | /** | ||
579 | * The type of savedata to load from. | 585 | * The type of savedata to load from. |
580 | */ | 586 | */ |
581 | TOX_SAVEDATA_TYPE savedata_type; | 587 | TOX_SAVEDATA_TYPE savedata_type; |
@@ -642,6 +648,10 @@ uint16_t tox_options_get_tcp_port(const struct Tox_Options *options); | |||
642 | 648 | ||
643 | void tox_options_set_tcp_port(struct Tox_Options *options, uint16_t tcp_port); | 649 | void tox_options_set_tcp_port(struct Tox_Options *options, uint16_t tcp_port); |
644 | 650 | ||
651 | bool tox_options_get_hole_punching_enabled(const struct Tox_Options *options); | ||
652 | |||
653 | void tox_options_set_hole_punching_enabled(struct Tox_Options *options, bool hole_punching_enabled); | ||
654 | |||
645 | TOX_SAVEDATA_TYPE tox_options_get_savedata_type(const struct Tox_Options *options); | 655 | TOX_SAVEDATA_TYPE tox_options_get_savedata_type(const struct Tox_Options *options); |
646 | 656 | ||
647 | void tox_options_set_savedata_type(struct Tox_Options *options, TOX_SAVEDATA_TYPE type); | 657 | void tox_options_set_savedata_type(struct Tox_Options *options, TOX_SAVEDATA_TYPE type); |