diff options
author | George Kadianakis <desnacked@riseup.net> | 2014-06-15 18:38:52 -0700 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2014-06-15 19:02:59 -0700 |
commit | bf263a9b99c41becc62ebe967124931330ae4016 (patch) | |
tree | d13b91d5b6b229cde0522d93d4ac11f8c85e610c /src/or/entrynodes.h | |
parent | 71da44f159ae0a3b0d267673ab5a74b51a843dca (diff) | |
download | tor-bf263a9b99c41becc62ebe967124931330ae4016.tar.gz tor-bf263a9b99c41becc62ebe967124931330ae4016.zip |
Make a few entrynodes.c functions testable.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r-- | src/or/entrynodes.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index e229f3b79a..d49ca508be 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -77,6 +77,22 @@ int num_live_entry_guards(int for_directory); #endif +#ifdef ENTRYNODES_PRIVATE +STATIC const node_t *add_an_entry_guard(const node_t *chosen, + int reset_status, int prepend, + int for_discovery, int for_directory); + +STATIC int populate_live_entry_guards(smartlist_t *live_entry_guards, + const smartlist_t *all_entry_guards, + const node_t *chosen_exit, + dirinfo_type_t dirinfo_type, + int for_directory, + int need_uptime, int need_capacity); +STATIC int decide_num_guards(const or_options_t *options, int for_directory); + +STATIC void entry_guards_set_from_config(const or_options_t *options); +#endif + void remove_all_entry_guards(void); void entry_guards_compute_status(const or_options_t *options, time_t now); |