forked from Green-Sky/tomato
Squashed 'external/toxcore/c-toxcore/' content from commit 67badf69
git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 67badf69416a74e74f6d7eb51dd96f37282b8455
This commit is contained in:
27
testing/misc_tools.h
Normal file
27
testing/misc_tools.h
Normal file
@ -0,0 +1,27 @@
|
||||
#ifndef C_TOXCORE_TESTING_MISC_TOOLS_H
|
||||
#define C_TOXCORE_TESTING_MISC_TOOLS_H
|
||||
|
||||
#include "../toxcore/tox.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Amount of time in milliseconds to wait between tox_iterate calls.
|
||||
#define ITERATION_INTERVAL 200
|
||||
|
||||
void c_sleep(uint32_t x);
|
||||
|
||||
uint8_t *hex_string_to_bin(const char *hex_string);
|
||||
char *id_toa(const uint8_t *id);
|
||||
void to_hex(char *out, uint8_t *in, int size);
|
||||
int tox_strncasecmp(const char *s1, const char *s2, size_t n);
|
||||
int cmdline_parsefor_ipv46(int argc, char **argv, bool *ipv6enabled);
|
||||
|
||||
int use_test_rng(uint32_t seed);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user