aboutsummaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-01-25 20:49:32 -0500
committerAndrea Shepard <andrea@torproject.org>2013-02-02 08:19:27 -0800
commitbce5019eff37fc741747ef76c5d0a387569f9265 (patch)
tree8a5199b366aeb30bc4d2effc622c2de30384fec0 /src/or/entrynodes.h
parenta8297cdbd3324ac707165ae9922ecf478c4608a1 (diff)
downloadtor-bce5019eff37fc741747ef76c5d0a387569f9265.tar.gz
tor-bce5019eff37fc741747ef76c5d0a387569f9265.zip
generalize choose_random_entry()'s dirinfo parameter
Now we can specify to skip bridges that wouldn't be able to answer the type of dir fetch we're launching. It's still the responsibility of the rest of the code to prevent us from launching a given dir fetch if we have no bridges that could handle it.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index 8ed429c8fb..235ef4bfd1 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -79,7 +79,7 @@ int entry_guard_register_connect_status(const char *digest, int succeeded,
void entry_nodes_should_be_added(void);
int entry_list_is_constrained(const or_options_t *options);
const node_t *choose_random_entry(cpath_build_state_t *state,
- int prefer_microdescs);
+ dirinfo_type_t dirinfo);
const node_t *choose_random_dirguard(dirinfo_type_t t);
int entry_guards_parse_state(or_state_t *state, int set, char **msg);
void entry_guards_update_state(or_state_t *state);