From 80f582ae1841d262edd7f55260f350d949294c0c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 9 May 2018 12:37:47 -0400 Subject: Add functions to enable/disable periodic_event_t objects. --- src/common/compat_libevent.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/compat_libevent.h') diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index e2747860a9..286a268122 100644 --- a/src/common/compat_libevent.h +++ b/src/common/compat_libevent.h @@ -31,6 +31,8 @@ periodic_timer_t *periodic_timer_new(struct event_base *base, void (*cb)(periodic_timer_t *timer, void *data), void *data); void periodic_timer_free_(periodic_timer_t *); +void periodic_timer_launch(periodic_timer_t *, const struct timeval *tv); +void periodic_timer_disable(periodic_timer_t *); #define periodic_timer_free(t) \ FREE_AND_NULL(periodic_timer_t, periodic_timer_free_, (t)) -- cgit v1.2.3-54-g00ecf