Coverage Report

Created: 2024-01-26 01:52

/work/testing/misc_tools.h
Line
Count
Source
1
#ifndef C_TOXCORE_TESTING_MISC_TOOLS_H
2
#define C_TOXCORE_TESTING_MISC_TOOLS_H
3
4
#include "../toxcore/tox.h"
5
6
#ifdef __cplusplus
7
extern "C" {
8
#endif
9
10
// Amount of time in milliseconds to wait between tox_iterate calls.
11
34.1k
#define ITERATION_INTERVAL 200
12
13
void c_sleep(uint32_t x);
14
15
uint8_t *hex_string_to_bin(const char *hex_string);
16
char *id_toa(const uint8_t *id);
17
void to_hex(char *out, uint8_t *in, int size);
18
int tox_strncasecmp(const char *s1, const char *s2, size_t n);
19
int cmdline_parsefor_ipv46(int argc, char **argv, bool *ipv6enabled);
20
21
int use_test_rng(uint32_t seed);
22
23
#ifdef __cplusplus
24
} /* extern "C" */
25
#endif
26
27
#endif