diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-10-08 21:05:14 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-10-09 17:33:37 +0000 |
commit | 605dfe882c52bfad4dee9678a69e4b816d93431d (patch) | |
tree | 10432adc5d3716cb28b833c6e156218b67c23494 /testing/misc_tools.c | |
parent | 77e025fae48a4f9cf6cf19a359b6c423545f3cc7 (diff) |
Consistently use camel case enum names.
Including in tests and implementation files.
Diffstat (limited to 'testing/misc_tools.c')
-rw-r--r-- | testing/misc_tools.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/misc_tools.c b/testing/misc_tools.c index 360d7a35..8991a222 100644 --- a/testing/misc_tools.c +++ b/testing/misc_tools.c | |||
@@ -155,7 +155,7 @@ int cmdline_parsefor_ipv46(int argc, char **argv, uint8_t *ipv6enabled) | |||
155 | return argvoffset; | 155 | return argvoffset; |
156 | } | 156 | } |
157 | 157 | ||
158 | static const char *tox_log_level_name(TOX_LOG_LEVEL level) | 158 | static const char *tox_log_level_name(Tox_Log_Level level) |
159 | { | 159 | { |
160 | switch (level) { | 160 | switch (level) { |
161 | case TOX_LOG_LEVEL_TRACE: | 161 | case TOX_LOG_LEVEL_TRACE: |
@@ -177,7 +177,7 @@ static const char *tox_log_level_name(TOX_LOG_LEVEL level) | |||
177 | return "<unknown>"; | 177 | return "<unknown>"; |
178 | } | 178 | } |
179 | 179 | ||
180 | void print_debug_log(Tox *m, TOX_LOG_LEVEL level, const char *file, uint32_t line, const char *func, | 180 | void print_debug_log(Tox *m, Tox_Log_Level level, const char *file, uint32_t line, const char *func, |
181 | const char *message, void *user_data) | 181 | const char *message, void *user_data) |
182 | { | 182 | { |
183 | if (level == TOX_LOG_LEVEL_TRACE) { | 183 | if (level == TOX_LOG_LEVEL_TRACE) { |
@@ -188,7 +188,7 @@ void print_debug_log(Tox *m, TOX_LOG_LEVEL level, const char *file, uint32_t lin | |||
188 | fprintf(stderr, "[#%u] %s %s:%u\t%s:\t%s\n", index, tox_log_level_name(level), file, line, func, message); | 188 | fprintf(stderr, "[#%u] %s %s:%u\t%s:\t%s\n", index, tox_log_level_name(level), file, line, func, message); |
189 | } | 189 | } |
190 | 190 | ||
191 | Tox *tox_new_log_lan(struct Tox_Options *options, TOX_ERR_NEW *err, void *log_user_data, bool lan_discovery) | 191 | Tox *tox_new_log_lan(struct Tox_Options *options, Tox_Err_New *err, void *log_user_data, bool lan_discovery) |
192 | { | 192 | { |
193 | struct Tox_Options *log_options = options; | 193 | struct Tox_Options *log_options = options; |
194 | 194 | ||
@@ -212,7 +212,7 @@ Tox *tox_new_log_lan(struct Tox_Options *options, TOX_ERR_NEW *err, void *log_us | |||
212 | return tox; | 212 | return tox; |
213 | } | 213 | } |
214 | 214 | ||
215 | Tox *tox_new_log(struct Tox_Options *options, TOX_ERR_NEW *err, void *log_user_data) | 215 | Tox *tox_new_log(struct Tox_Options *options, Tox_Err_New *err, void *log_user_data) |
216 | { | 216 | { |
217 | return tox_new_log_lan(options, err, log_user_data, false); | 217 | return tox_new_log_lan(options, err, log_user_data, false); |
218 | } | 218 | } |