]> git.meshlink.io Git - meshlink/blobdiff - lib/utils.h
- Second fixing-things pass: it even links now.
[meshlink] / lib / utils.h
index ed6550dc061b68a7c756721912a9497e7b3443de..a4684f3dffd8225b64efb4601d188f7a4d0a9951 100644 (file)
 #ifndef __TINC_UTILS_H__
 #define __TINC_UTILS_H__
 
+#include <ctype.h>
+
+enum {
+  DEBUG_CONNECTIONS = 0,
+  DEBUG_PROTOCOL,
+  DEBUG_STATUS,
+  DEBUG_error,
+  DEBUG_META
+};
+
 #define min(a,b) (((a)<(b))?(a):(b))
 
 #define cp { cp_line = __LINE__; cp_file = __FILE__; }
@@ -27,4 +37,7 @@
 extern volatile int cp_line;
 extern volatile char *cp_file;
 
+extern void hex2bin(char *src, char *dst, size_t length);
+extern void bin2hex(char *src, char *dst, size_t length);
+
 #endif /* __TINC_UTILS_H__ */