diff options
author | Andrea Shepard <andrea@torproject.org> | 2014-01-23 21:13:26 -0800 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2014-09-30 23:14:57 -0700 |
commit | 71a9ed6feb9e28cce0a2e776e23b440b0139e479 (patch) | |
tree | 78ae867b5dff7beb9f8e03168a23f6d9e6e27ac9 /src/or/scheduler.h | |
parent | 0af88f909661b8fd2987beb839c78b804212abc7 (diff) | |
download | tor-71a9ed6feb9e28cce0a2e776e23b440b0139e479.tar.gz tor-71a9ed6feb9e28cce0a2e776e23b440b0139e479.zip |
Make some scheduler.c static functions visible to the test suite
Diffstat (limited to 'src/or/scheduler.h')
-rw-r--r-- | src/or/scheduler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/scheduler.h b/src/or/scheduler.h index 7f59ec45d0..3c0d86dabb 100644 --- a/src/or/scheduler.h +++ b/src/or/scheduler.h @@ -34,5 +34,12 @@ void scheduler_adjust_queue_size(channel_t *chan, char dir, uint64_t adj); /* Notify scheduler that a channel's queue position may have changed */ void scheduler_touch_channel(channel_t *chan); +/* Things only scheduler.c and its test suite should see */ + +#ifdef SCHEDULER_PRIVATE_ +STATIC uint64_t scheduler_get_queue_heuristic(void); +STATIC void scheduler_update_queue_heuristic(time_t now); +#endif + #endif /* !defined(TOR_SCHEDULER_H) */ |