aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/contrib/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
commit295c9ff274f489b3eaec8c4e342938eef864f769 (patch)
tree64aa843d406282d8dfa567e593105a4c8d071a2e /contrib/embeddable-wg-library/wireguard.h
parentwg: fixup errno handling (diff)
downloadwireguard-tools-295c9ff274f489b3eaec8c4e342938eef864f769.tar.xz
wireguard-tools-295c9ff274f489b3eaec8c4e342938eef864f769.zip
contrib: embedded-wg-library: add ability to add and del interfaces
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'contrib/embeddable-wg-library/wireguard.h')
-rw-r--r--contrib/embeddable-wg-library/wireguard.h2
1 files changed, 2 insertions, 0 deletions
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);