aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerlist.h
diff options
context:
space:
mode:
authorMatthew Finkel <Matthew.Finkel@gmail.com>2015-01-26 19:49:48 +0000
committerNick Mathewson <nickm@torproject.org>2015-12-18 13:14:09 -0500
commite0bd6cdef25d7cdcff18d2bce7865aa7acc1f2b8 (patch)
tree2c4025a5d024781c2f4ef1d572dd739664957af1 /src/or/routerlist.h
parent0a7d22a664505c5235031fc2d3d792b83254b5ad (diff)
downloadtor-e0bd6cdef25d7cdcff18d2bce7865aa7acc1f2b8.tar.gz
tor-e0bd6cdef25d7cdcff18d2bce7865aa7acc1f2b8.zip
Add unit test for router_pick_directory_server_impl
Diffstat (limited to 'src/or/routerlist.h')
-rw-r--r--src/or/routerlist.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerlist.h b/src/or/routerlist.h
index 339e34ae03..dd88aeb179 100644
--- a/src/or/routerlist.h
+++ b/src/or/routerlist.h
@@ -233,6 +233,9 @@ STATIC int choose_array_element_by_weight(const u64_dbl_t *entries,
int n_entries);
STATIC void scale_array_elements_to_u64(u64_dbl_t *entries, int n_entries,
uint64_t *total_out);
+STATIC const routerstatus_t *router_pick_directory_server_impl(
+ dirinfo_type_t auth, int flags,
+ int *n_busy_out);
MOCK_DECL(int, router_descriptor_is_older_than, (const routerinfo_t *router,
int seconds));