From 295c9ff274f489b3eaec8c4e342938eef864f769 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 21 Feb 2018 02:53:06 +0100 Subject: contrib: embedded-wg-library: add ability to add and del interfaces Signed-off-by: Jason A. Donenfeld --- contrib/embeddable-wg-library/wireguard.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'contrib/embeddable-wg-library/wireguard.h') diff --git a/contrib/embeddable-wg-library/wireguard.h b/contrib/embeddable-wg-library/wireguard.h index 514ede1..350de7d 100644 --- a/contrib/embeddable-wg-library/wireguard.h +++ b/contrib/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); -- cgit v1.2.3-59-g8ed1b