aboutsummaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-05-05 11:47:45 -0400
committerAlexander Færøy <ahf@torproject.org>2017-05-12 17:45:24 +0200
commit8100305e71fb1072831de1666cbb39196d1ae162 (patch)
tree2bb49981f77a59a88c0f01bed0a495af462c4175 /src/or/consdiffmgr.h
parent7b0dcf5c4a081ef892d79a9a3e36a6d4d1ec31f9 (diff)
downloadtor-8100305e71fb1072831de1666cbb39196d1ae162.tar.gz
tor-8100305e71fb1072831de1666cbb39196d1ae162.zip
consdiffmgr: expose cached consensuses
Diffstat (limited to 'src/or/consdiffmgr.h')
-rw-r--r--src/or/consdiffmgr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h
index cbff599381..5f7e944f55 100644
--- a/src/or/consdiffmgr.h
+++ b/src/or/consdiffmgr.h
@@ -23,6 +23,11 @@ struct consensus_cache_entry_t; // from conscache.h
int consdiffmgr_add_consensus(const char *consensus,
const networkstatus_t *as_parsed);
+consdiff_status_t consdiffmgr_find_consensus(
+ struct consensus_cache_entry_t **entry_out,
+ consensus_flavor_t flavor,
+ compress_method_t method);
+
consdiff_status_t consdiffmgr_find_diff_from(
struct consensus_cache_entry_t **entry_out,
consensus_flavor_t flavor,