Move stub accessor functions a level higher, to consdiffmgr

This commit is contained in:
Nick Mathewson
2017-05-14 19:19:59 -04:00
parent ef2a62b2ff
commit 2f06345db3
4 changed files with 65 additions and 67 deletions
+14
View File
@@ -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);