summaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-10-03 11:20:59 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-05 12:36:27 -0400
commitb3586629c9ce41393898b381159ba331906f8fc3 (patch)
treedf515c0311ce74f29890b77311403905aa406f55 /src/common/compat_libevent.h
parent39cb04335f9fd5c3268c808bac549f531fe389a3 (diff)
downloadtor-b3586629c9ce41393898b381159ba331906f8fc3.tar.gz
tor-b3586629c9ce41393898b381159ba331906f8fc3.zip
Wrap the function we use to run the event loop.
Doing this lets us remove the event2/event.h header from a few more modules, particularly in the tests. Part of work on 23750.
Diffstat (limited to 'src/common/compat_libevent.h')
-rw-r--r--src/common/compat_libevent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/compat_libevent.h b/src/common/compat_libevent.h
index 86bc77ba5f..c8b0371564 100644
--- a/src/common/compat_libevent.h
+++ b/src/common/compat_libevent.h
@@ -72,6 +72,7 @@ void tor_gettimeofday_cache_set(const struct timeval *tv);
void tor_libevent_postfork(void);
#endif
+int tor_libevent_run_event_loop(struct event_base *base, int once);
void tor_libevent_exit_loop_after_delay(struct event_base *base,
const struct timeval *delay);
void tor_libevent_exit_loop_after_callback(struct event_base *base);