summaryrefslogtreecommitdiffstats
path: root/src/wireguard.h
diff options
context:
space:
mode:
authorMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-11 11:57:15 +1000
committerMatt Dunwoodie <ncon@mail.noconroy.net>2019-08-11 12:39:10 +1000
commita33ccfdd4ea5b7676e5480382f729d91dbb7196e (patch)
tree4e7409dd358800e90516ebf7450c5f050c55d88e /src/wireguard.h
parentEnsure all peers are removed before continuing with wg_softc_destroy (diff)
downloadwireguard-openbsd-a33ccfdd4ea5b7676e5480382f729d91dbb7196e.tar.xz
wireguard-openbsd-a33ccfdd4ea5b7676e5480382f729d91dbb7196e.zip
Refactor wg_timers*
Diffstat (limited to 'src/wireguard.h')
-rw-r--r--src/wireguard.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wireguard.h b/src/wireguard.h
index e83575b7272..270e35c2f17 100644
--- a/src/wireguard.h
+++ b/src/wireguard.h
@@ -201,11 +201,9 @@ void wg_keypair_from_bytes(struct wg_keypair *, const uint8_t [WG_KEY_SIZE]);
enum wg_pkt_type wg_pkt_type(uint8_t *, size_t);
/* Timer functions */
-void wg_timer_broken(void *);
-void wg_timer_reinit(void *);
-void wg_timer_cleanup(void *);
void wg_timer_setup(struct wg_timers *, void *, void (*)(void *),
void (*)(void *), void (*)(void *), void (*)(void *));
+void wg_timer_stop(struct wg_timers *);
void wg_timer_persistent_keepalive_tick(struct wg_timers *);
void wg_timer_persistent_keepalive_set(struct wg_timers *, uint16_t);
uint16_t wg_timer_persistent_keepalive_get(struct wg_timers *);