summaryrefslogtreecommitdiff
path: root/src/or/consdiffmgr.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-25 15:36:13 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-27 21:40:46 -0400
commit1e1581a24ea11b93b1fdf33a11ce07b8d2772c75 (patch)
tree41ea7b95600360c2710247d4b0fc1894d41ee036 /src/or/consdiffmgr.h
parenta1172b6774bc95ff951ac58051ea42bc0a62e32b (diff)
downloadtor-1e1581a24ea11b93b1fdf33a11ce07b8d2772c75.tar.gz
tor-1e1581a24ea11b93b1fdf33a11ce07b8d2772c75.zip
Pre-compress consensus diffs with supported consensus methods.
Diffstat (limited to 'src/or/consdiffmgr.h')
-rw-r--r--src/or/consdiffmgr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h
index 982e0df3ab..12796739e9 100644
--- a/src/or/consdiffmgr.h
+++ b/src/or/consdiffmgr.h
@@ -28,7 +28,8 @@ consdiff_status_t consdiffmgr_find_diff_from(
consensus_flavor_t flavor,
int digest_type,
const uint8_t *digest,
- size_t digestlen);
+ size_t digestlen,
+ compress_method_t method);
void consdiffmgr_rescan(void);
int consdiffmgr_cleanup(void);
void consdiffmgr_configure(const consdiff_cfg_t *cfg);
@@ -36,6 +37,7 @@ void consdiffmgr_free_all(void);
int consdiffmgr_validate(void);
#ifdef CONSDIFFMGR_PRIVATE
+STATIC unsigned n_diff_compression_methods(void);
STATIC consensus_cache_t *cdm_cache_get(void);
STATIC consensus_cache_entry_t *cdm_cache_lookup_consensus(
consensus_flavor_t flavor, time_t valid_after);