|
@@ -13,6 +13,8 @@ typedef void (*timer_cb_fn_t)(tor_timer_t *, void *,
|
|
|
const struct monotime_t *);
|
|
|
tor_timer_t *timer_new(timer_cb_fn_t cb, void *arg);
|
|
|
void timer_set_cb(tor_timer_t *t, timer_cb_fn_t cb, void *arg);
|
|
|
+void timer_get_cb(const tor_timer_t *t,
|
|
|
+ timer_cb_fn_t *cb_out, void **arg_out);
|
|
|
void timer_schedule(tor_timer_t *t, const struct timeval *delay);
|
|
|
void timer_disable(tor_timer_t *t);
|
|
|
void timer_free(tor_timer_t *t);
|