summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2014-06-25 15:39:00 -0400
committerGeorge Kadianakis <desnacked@riseup.net>2014-06-25 15:39:00 -0400
commit46d41e6e9b4208b1a951f2d7f14da92606b82195 (patch)
treeca14b617f56b88ac3ce7be725c98e6fd057898a8 /src/or/entrynodes.h
parenta8fcdbf4a0fcea3c97431f0c2bcc5a7774764ed4 (diff)
downloadtor-46d41e6e9b4208b1a951f2d7f14da92606b82195.tar.gz
tor-46d41e6e9b4208b1a951f2d7f14da92606b82195.zip
Basic entry_is_live() unittest.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r--src/or/entrynodes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h
index d49ca508be..afbe9e962b 100644
--- a/src/or/entrynodes.h
+++ b/src/or/entrynodes.h
@@ -91,6 +91,11 @@ STATIC int populate_live_entry_guards(smartlist_t *live_entry_guards,
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);
+
+STATIC INLINE const node_t *entry_is_live(const entry_guard_t *e,
+ int need_uptime, int need_capacity,
+ int assume_reachable,
+ int need_descriptor,const char **msg);
#endif
void remove_all_entry_guards(void);