X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=lib%2Futils.h;h=a4684f3dffd8225b64efb4601d188f7a4d0a9951;hb=97ce045189e330e121873d1b4be1959c60062cbb;hp=ed6550dc061b68a7c756721912a9497e7b3443de;hpb=1243156a5e03a666b36bc4400f1402243a85c9a7;p=tinc diff --git a/lib/utils.h b/lib/utils.h index ed6550dc..a4684f3d 100644 --- a/lib/utils.h +++ b/lib/utils.h @@ -20,6 +20,16 @@ #ifndef __TINC_UTILS_H__ #define __TINC_UTILS_H__ +#include + +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__ */