summaryrefslogtreecommitdiff
path: root/src/or/scheduler.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-09-14 14:22:22 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-09-15 11:40:59 -0400
commit14cd8bdd4ba6f4c5946ecd9877c77c9ba305bbe8 (patch)
tree1c76e5bfe124d06d7e68582b7f644ad843066c83 /src/or/scheduler.h
parent84d18f70f3400df3e9c3b3c47288e82cd9160f6e (diff)
downloadtor-14cd8bdd4ba6f4c5946ecd9877c77c9ba305bbe8.tar.gz
tor-14cd8bdd4ba6f4c5946ecd9877c77c9ba305bbe8.zip
sched: Don't expose the global scheduler libevent object
Instead, add wrappers to do the needed action the different scheduler needs with the libevent object. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/scheduler.h')
-rw-r--r--src/or/scheduler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/scheduler.h b/src/or/scheduler.h
index b1863b1193..c69f763ffb 100644
--- a/src/or/scheduler.h
+++ b/src/or/scheduler.h
@@ -139,9 +139,10 @@ MOCK_DECL(void, scheduler_channel_has_waiting_cells, (channel_t *chan));
* Defined in scheduler.c
*********************************/
smartlist_t *get_channels_pending(void);
-struct event *get_run_sched_ev(void);
MOCK_DECL(int, scheduler_compare_channels,
(const void *c1_v, const void *c2_v));
+void scheduler_ev_active(int flags);
+void scheduler_ev_add(const struct timeval *next_run);
#ifdef TOR_UNIT_TESTS
extern smartlist_t *channels_pending;