aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/examples/embeddable-wg-library/wireguard.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-21 02:53:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-02-21 02:53:06 +0100
commitce04251546f967ace5fb675f700458c1e5809b4c (patch)
tree7e101e3ca4864704801968b9d45c876f9c9ad9ed /contrib/examples/embeddable-wg-library/wireguard.h
parentqueueing: skb_reset: mark as xnet (diff)
downloadwireguard-monolithic-historical-ce04251546f967ace5fb675f700458c1e5809b4c.tar.xz
wireguard-monolithic-historical-ce04251546f967ace5fb675f700458c1e5809b4c.zip
contrib: embedded-wg-library: add ability to add and del interfaces
Diffstat (limited to '')
-rw-r--r--contrib/examples/embeddable-wg-library/wireguard.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/examples/embeddable-wg-library/wireguard.h b/contrib/examples/embeddable-wg-library/wireguard.h
index 514ede1..350de7d 100644
--- a/contrib/examples/embeddable-wg-library/wireguard.h
+++ b/contrib/examples/embeddable-wg-library/wireguard.h
@@ -83,6 +83,8 @@ typedef struct wg_device {
int wg_set_device(wg_device *dev);
int wg_get_device(wg_device **dev, const char *device_name);
+int wg_add_device(const char *device_name);
+int wg_del_device(const char *device_name);
void wg_free_device(wg_device *dev);
char *wg_list_device_names(void); /* first\0second\0third\0forth\0last\0\0 */
void wg_key_to_base64(wg_key_b64_string base64, const wg_key key);