diff options
author | George Kadianakis <desnacked@gmail.com> | 2011-11-13 14:47:11 +0100 |
---|---|---|
committer | George Kadianakis <desnacked@gmail.com> | 2011-11-13 14:47:11 +0100 |
commit | 406ae1ba5ad529a4d0e710229dab6ed645d42b50 (patch) | |
tree | 2bd05b7af82b902151643881f383df4ed6faed67 /src/common/compat_libevent.h | |
parent | e097bffaed72af6b19f7293722021196bb94de1e (diff) | |
download | tor-406ae1ba5ad529a4d0e710229dab6ed645d42b50.tar.gz tor-406ae1ba5ad529a4d0e710229dab6ed645d42b50.zip |
Use callback-driven approach to block renegotiations.
Also use this new approach in the bufferevents-enabled case.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r-- | src/common/compat_libevent.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h index 0247297177..897eddbbe0 100644 --- a/src/common/compat_libevent.h +++ b/src/common/compat_libevent.h @@ -46,6 +46,9 @@ void tor_event_free(struct event *ev); typedef struct periodic_timer_t periodic_timer_t; +int tor_event_base_once(void (*cb)(evutil_socket_t, short, void *), + void *arg, struct timeval *timer); + periodic_timer_t *periodic_timer_new(struct event_base *base, const struct timeval *tv, void (*cb)(periodic_timer_t *timer, void *data), |