- Second fixing-things pass: it even links now.
[tinc] / lib / utils.h
index ed6550d..a4684f3 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__ */