summaryrefslogtreecommitdiff
path: root/toxcore/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/util.h')
-rw-r--r--toxcore/util.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/toxcore/util.h b/toxcore/util.h
index 90a3c8e4..e7be2d51 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -5,8 +5,26 @@
5 * Copyright 2013 plutooo 5 * Copyright 2013 plutooo
6 */ 6 */
7 7
8#ifndef __UTIL_H__
9#define __UTIL_H__
10
11#include <stdbool.h>
12#include <stdint.h>
13
8uint64_t now(); 14uint64_t now();
9uint64_t random_64b(); 15uint64_t random_64b();
10bool ipp_eq(IP_Port a, IP_Port b);
11bool id_eq(uint8_t *dest, uint8_t *src); 16bool id_eq(uint8_t *dest, uint8_t *src);
12void id_cpy(uint8_t *dest, uint8_t *src); 17void id_cpy(uint8_t *dest, uint8_t *src);
18
19int cmdline_parsefor_ipv46(int argc, char **argv, uint8_t *ipv6enabled);
20
21#undef LOGGING
22/* #define LOGGING */
23#ifdef LOGGING
24extern char logbuffer[512];
25void loginit(uint16_t port);
26void loglog(char *text);
27void logexit();
28#endif
29
30#endif /* __UTIL_H__ */