diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-05-14 19:19:59 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-05-15 17:21:55 -0400 |
commit | 2f06345db3b6f85144c1d8a0b6ca55e2b1e243ce (patch) | |
tree | f42fb4fe335ba8cac9eab660f50c8fffcd33e855 /src/or/consdiffmgr.h | |
parent | ef2a62b2ff0c8db17e146a79034c8e43ee528c86 (diff) | |
download | tor-2f06345db3b6f85144c1d8a0b6ca55e2b1e243ce.tar.gz tor-2f06345db3b6f85144c1d8a0b6ca55e2b1e243ce.zip |
Move stub accessor functions a level higher, to consdiffmgr
Diffstat (limited to 'src/or/consdiffmgr.h')
-rw-r--r-- | src/or/consdiffmgr.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h index abe1ea9dc3..a8111dd7be 100644 --- a/src/or/consdiffmgr.h +++ b/src/or/consdiffmgr.h @@ -35,6 +35,20 @@ consdiff_status_t consdiffmgr_find_diff_from( const uint8_t *digest, 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( + const struct consensus_cache_entry_t *ent, + smartlist_t *out); +int consensus_cache_entry_valid_until( + const struct consensus_cache_entry_t *ent, + time_t *out); + void consdiffmgr_rescan(void); int consdiffmgr_cleanup(void); void consdiffmgr_enable_background_compression(void); |