summaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.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/consdiffmgr.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/consdiffmgr.h')
-rw-r--r--src/or/consdiffmgr.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h
index a8111dd7be..0325a00bf5 100644
--- a/src/or/consdiffmgr.h
+++ b/src/or/consdiffmgr.h
@@ -36,16 +36,13 @@ consdiff_status_t consdiffmgr_find_diff_from(
size_t digestlen,
compress_method_t method);
-int consensus_cache_entry_get_lifetime(
- const struct consensus_cache_entry_t *ent,
- long *lifetime);
-int consensus_cache_entry_is_reasonably_live(
- const struct consensus_cache_entry_t *ent,
- time_t now);
-int consensus_cache_entry_get_voters(
+int consensus_cache_entry_get_voter_id_digests(
const struct consensus_cache_entry_t *ent,
smartlist_t *out);
-int consensus_cache_entry_valid_until(
+int consensus_cache_entry_get_fresh_until(
+ const struct consensus_cache_entry_t *ent,
+ time_t *out);
+int consensus_cache_entry_get_valid_until(
const struct consensus_cache_entry_t *ent,
time_t *out);