From 2d08941f6acb6877f7db7266bf089145dc3cf90e Mon Sep 17 00:00:00 2001 From: Joseph Mattello Date: Fri, 30 Dec 2022 15:47:27 -0500 Subject: [PATCH] udpate em_proxy.h Signed-off-by: Joseph Mattello --- EmotionalDamage/em_proxy.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/EmotionalDamage/em_proxy.h b/EmotionalDamage/em_proxy.h index d3e9066e..fd09f4fa 100644 --- a/EmotionalDamage/em_proxy.h +++ b/EmotionalDamage/em_proxy.h @@ -17,7 +17,7 @@ * # Safety * Don't be stupid */ -void *start_emotional_damage(const char *bind_addr); +int start_emotional_damage(const char *bind_addr); /** * Stops further emotional damage @@ -28,4 +28,13 @@ void *start_emotional_damage(const char *bind_addr); * # Safety * Don't be stupid */ -void stop_emotional_damage(void *handle); +void stop_emotional_damage(void); + +/** + * Blocks until Wireguard is ready + * # Arguments + * * `timeout` - The timeout in miliseconds to wait for Wireguard + * # Returns + * 0 on success, -1 on failure + */ +int test_emotional_damage(int timeout);