Initial merge of rc's work.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jeroen Leenarts
2018-08-27 22:32:47 +02:00
parent 2c3a36078e
commit 2e9a12c63f
8 changed files with 169 additions and 276 deletions
+2 -2
View File
@@ -9,11 +9,11 @@
#include <sys/types.h>
typedef struct { const char *p; size_t n; } gostring_t;
typedef ssize_t(*read_write_fn_t)(const void *ctx, const unsigned char *buf, size_t len);
typedef ssize_t(*read_write_fn_t)(void *ctx, unsigned char *buf, size_t len);
typedef void(*logger_fn_t)(int level, const char *tag, const char *msg);
extern void wgSetLogger(logger_fn_t logger_fn);
extern int wgTurnOn(gostring_t ifname, gostring_t settings, read_write_fn_t read_fn, read_write_fn_t write_fn, void *ctx);
extern void wgTurnOff(int handle);
extern char *wgVersion(void);
extern char *wgVersion();
#endif