Coverage Report

Created: 2025-10-08 19:34

/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 <stdbool.h>
5
#include <stddef.h>
6
#include <stdint.h>
7
8
#ifdef __cplusplus
9
extern "C" {
10
#endif
11
12
// Amount of time in milliseconds to wait between tox_iterate calls.
13
25.6k
#define ITERATION_INTERVAL 200
14
15
void c_sleep(uint32_t x);
16
17
uint8_t *hex_string_to_bin(const char *hex_string);
18
void to_hex(char *out, uint8_t *in, int size);
19
int tox_strncasecmp(const char *s1, const char *s2, size_t n);
20
int cmdline_parsefor_ipv46(int argc, char **argv, bool *ipv6enabled);
21
22
int use_test_rng(uint32_t seed);
23
24
#ifdef __cplusplus
25
} /* extern "C" */
26
#endif
27
28
#endif