summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-27 16:38:37 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-27 16:38:37 +0000
commit8cf9fe5ba63c1c2b711d852b61e734c48cf482b5 (patch)
tree4bbbb2ae37698f0f9ef07a6a4e03f8c38538e29e /src/or/networkstatus.h
parent703254a8321788bd6d03ec5f335fe338916fef6f (diff)
downloadtor-8cf9fe5ba63c1c2b711d852b61e734c48cf482b5.tar.gz
tor-8cf9fe5ba63c1c2b711d852b61e734c48cf482b5.zip
Expose consensus download statuses on the control port
Diffstat (limited to 'src/or/networkstatus.h')
-rw-r--r--src/or/networkstatus.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h
index aee6641c6e..752ddf8e1e 100644
--- a/src/or/networkstatus.h
+++ b/src/or/networkstatus.h
@@ -38,6 +38,13 @@ routerstatus_t *networkstatus_vote_find_mutable_entry(networkstatus_t *ns,
int networkstatus_vote_find_entry_idx(networkstatus_t *ns,
const char *digest, int *found_out);
+download_status_t * networkstatus_get_dl_status_by_flavor(
+ consensus_flavor_t flavor);
+download_status_t * networkstatus_get_dl_status_by_flavor_bootstrap(
+ consensus_flavor_t flavor);
+download_status_t * networkstatus_get_dl_status_by_flavor_running(
+ consensus_flavor_t flavor);
+
MOCK_DECL(download_status_t *,router_get_dl_status_by_descriptor_digest,
(const char *d));