aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-11-25 17:18:03 -0500
committerNick Mathewson <nickm@torproject.org>2011-11-25 17:18:54 -0500
commit7920ea55b8d994268d2b07f27316b0f34d8f27e5 (patch)
tree28a06534ce008544ca085688c463fa0c222721b3 /src/common/compat_libevent.h
parente5f2f10844dc2445f8cf2f0dc8ec92bc4ce65d63 (diff)
downloadtor-7920ea55b8d994268d2b07f27316b0f34d8f27e5.tar
tor-7920ea55b8d994268d2b07f27316b0f34d8f27e5.tar.gz
Refactor tor_event_base_once to do what we actually want
This version avoids the timeout system entirely, gives a nicer interface, and lets us manage allocation explicitly.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index 897eddbbe..3f916d16b 100644
--- a/src/common/compat_libevent.h
+++ b/src/common/compat_libevent.h
@@ -46,8 +46,7 @@ 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);
+int tor_run_in_libevent_loop(void (*cb)(void *arg), void *arg);
periodic_timer_t *periodic_timer_new(struct event_base *base,
const struct timeval *tv,