aboutsummaryrefslogtreecommitdiffstats
path: root/wireguard-go-bridge
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-08-27 22:32:47 +0200
committerJeroen Leenarts <jeroen.leenarts@gmail.com>2018-08-27 22:32:47 +0200
commit2e9a12c63f0c92a29662b0c65c1ea1c229f6161c (patch)
treecc56321636ccd8bf19c409b1b13ab56b7a420ea0 /wireguard-go-bridge
parentSelect correct IP version identifier based on packet contents. (diff)
downloadwireguard-apple-2e9a12c63f0c92a29662b0c65c1ea1c229f6161c.tar.xz
wireguard-apple-2e9a12c63f0c92a29662b0c65c1ea1c229f6161c.zip
Initial merge of rc's work.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'wireguard-go-bridge')
-rw-r--r--wireguard-go-bridge/wireguard.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wireguard-go-bridge/wireguard.h b/wireguard-go-bridge/wireguard.h
index d009f720..8fd2ac0f 100644
--- a/wireguard-go-bridge/wireguard.h
+++ b/wireguard-go-bridge/wireguard.h
@@ -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