summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-14 19:43:41 -0400
committerNick Mathewson <nickm@torproject.org>2017-05-15 17:21:55 -0400
commitdcc533fb133646d81c2fa6632d6fb7f05f99f650 (patch)
tree8cdeaf5d253314f59dc00cc1f9e86892b095e9eb /src/or/networkstatus.h
parent2f06345db3b6f85144c1d8a0b6ca55e2b1e243ce (diff)
downloadtor-dcc533fb133646d81c2fa6632d6fb7f05f99f650.tar.gz
tor-dcc533fb133646d81c2fa6632d6fb7f05f99f650.zip
Implement functions to expose valid/fresh-until and voters
These still won't do anything till I get the values to be filled in. Also, I changed the API a little (with corresponding changes in directory.c) to match things that it's easier to store.
Diffstat (limited to 'src/or/networkstatus.h')
-rw-r--r--src/or/networkstatus.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h
index 37a5a3b7a0..e774c4d266 100644
--- a/src/or/networkstatus.h
+++ b/src/or/networkstatus.h
@@ -81,8 +81,10 @@ MOCK_DECL(networkstatus_t *,networkstatus_get_latest_consensus,(void));
MOCK_DECL(networkstatus_t *,networkstatus_get_latest_consensus_by_flavor,
(consensus_flavor_t f));
MOCK_DECL(networkstatus_t *, networkstatus_get_live_consensus,(time_t now));
-int networkstatus_consensus_reasonably_live(networkstatus_t *consensus,
+int networkstatus_consensus_reasonably_live(const networkstatus_t *consensus,
time_t now);
+int networkstatus_valid_until_is_reasonably_live(time_t valid_until,
+ time_t now);
networkstatus_t *networkstatus_get_reasonably_live_consensus(time_t now,
int flavor);
MOCK_DECL(int, networkstatus_consensus_is_bootstrapping,(time_t now));