summaryrefslogtreecommitdiff
path: root/toxcore/tox_api.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-10-08 21:05:14 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-10-09 17:33:37 +0000
commit605dfe882c52bfad4dee9678a69e4b816d93431d (patch)
tree10432adc5d3716cb28b833c6e156218b67c23494 /toxcore/tox_api.c
parent77e025fae48a4f9cf6cf19a359b6c423545f3cc7 (diff)
Consistently use camel case enum names.
Including in tests and implementation files.
Diffstat (limited to 'toxcore/tox_api.c')
-rw-r--r--toxcore/tox_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/tox_api.c b/toxcore/tox_api.c
index 87123968..e720832a 100644
--- a/toxcore/tox_api.c
+++ b/toxcore/tox_api.c
@@ -44,14 +44,14 @@ void tox_options_set_##ns##name(struct Tox_Options *options, type name) \
44 44
45ACCESSORS(bool,, ipv6_enabled) 45ACCESSORS(bool,, ipv6_enabled)
46ACCESSORS(bool,, udp_enabled) 46ACCESSORS(bool,, udp_enabled)
47ACCESSORS(TOX_PROXY_TYPE, proxy_, type) 47ACCESSORS(Tox_Proxy_Type, proxy_, type)
48ACCESSORS(const char *, proxy_, host) 48ACCESSORS(const char *, proxy_, host)
49ACCESSORS(uint16_t, proxy_, port) 49ACCESSORS(uint16_t, proxy_, port)
50ACCESSORS(uint16_t,, start_port) 50ACCESSORS(uint16_t,, start_port)
51ACCESSORS(uint16_t,, end_port) 51ACCESSORS(uint16_t,, end_port)
52ACCESSORS(uint16_t,, tcp_port) 52ACCESSORS(uint16_t,, tcp_port)
53ACCESSORS(bool,, hole_punching_enabled) 53ACCESSORS(bool,, hole_punching_enabled)
54ACCESSORS(TOX_SAVEDATA_TYPE, savedata_, type) 54ACCESSORS(Tox_Savedata_Type, savedata_, type)
55ACCESSORS(size_t, savedata_, length) 55ACCESSORS(size_t, savedata_, length)
56ACCESSORS(tox_log_cb *, log_, callback) 56ACCESSORS(tox_log_cb *, log_, callback)
57ACCESSORS(void *, log_, user_data) 57ACCESSORS(void *, log_, user_data)
@@ -81,7 +81,7 @@ void tox_options_default(struct Tox_Options *options)
81 } 81 }
82} 82}
83 83
84struct Tox_Options *tox_options_new(TOX_ERR_OPTIONS_NEW *error) 84struct Tox_Options *tox_options_new(Tox_Err_Options_New *error)
85{ 85{
86 struct Tox_Options *options = (struct Tox_Options *)malloc(sizeof(struct Tox_Options)); 86 struct Tox_Options *options = (struct Tox_Options *)malloc(sizeof(struct Tox_Options));
87 87