summaryrefslogtreecommitdiff
path: root/toxcore/tox.h
diff options
context:
space:
mode:
authorGregory Mullen (grayhatter) <greg@grayhatter.com>2016-11-11 03:10:24 -0800
committerGregory Mullen (grayhatter) <greg@grayhatter.com>2016-11-24 17:38:34 -0800
commitad517eb1df8841db52a45c7ac9ecf5976a290d57 (patch)
tree6e0d82599a6c1b0fd819ecf84e4abc82aa41b02e /toxcore/tox.h
parent19711d0fd0e2c181c3fe9df692b15f57390420d1 (diff)
add NAT hole punching level to Tox API
Diffstat (limited to 'toxcore/tox.h')
-rw-r--r--toxcore/tox.h10
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
643void tox_options_set_tcp_port(struct Tox_Options *options, uint16_t tcp_port); 649void tox_options_set_tcp_port(struct Tox_Options *options, uint16_t tcp_port);
644 650
651bool tox_options_get_hole_punching_enabled(const struct Tox_Options *options);
652
653void tox_options_set_hole_punching_enabled(struct Tox_Options *options, bool hole_punching_enabled);
654
645TOX_SAVEDATA_TYPE tox_options_get_savedata_type(const struct Tox_Options *options); 655TOX_SAVEDATA_TYPE tox_options_get_savedata_type(const struct Tox_Options *options);
646 656
647void tox_options_set_savedata_type(struct Tox_Options *options, TOX_SAVEDATA_TYPE type); 657void tox_options_set_savedata_type(struct Tox_Options *options, TOX_SAVEDATA_TYPE type);