summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-16 13:16:35 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-09 07:30:35 -0500
commitafa36682f959d12da1d6369b38d5d960f345c09a (patch)
treec2656834c989ece9e1d6cbedefdd41763b588a7a /src
parent06d977b5690681197596be27841b43492fa41b32 (diff)
downloadtor-afa36682f959d12da1d6369b38d5d960f345c09a.tar.gz
tor-afa36682f959d12da1d6369b38d5d960f345c09a.zip
consdiffmgr.h: use struct declarations for several types
This prevents a dependency on include order.
Diffstat (limited to 'src')
-rw-r--r--src/feature/dircache/consdiffmgr.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/feature/dircache/consdiffmgr.h b/src/feature/dircache/consdiffmgr.h
index f72dd5b282..07ae6fac6d 100644
--- a/src/feature/dircache/consdiffmgr.h
+++ b/src/feature/dircache/consdiffmgr.h
@@ -66,17 +66,19 @@ void consdiffmgr_free_all(void);
int consdiffmgr_validate(void);
#ifdef CONSDIFFMGR_PRIVATE
+struct consensus_cache_t;
+struct consensus_cache_entry_t;
STATIC unsigned n_diff_compression_methods(void);
STATIC unsigned n_consensus_compression_methods(void);
-STATIC consensus_cache_t *cdm_cache_get(void);
-STATIC consensus_cache_entry_t *cdm_cache_lookup_consensus(
+STATIC struct consensus_cache_t *cdm_cache_get(void);
+STATIC struct consensus_cache_entry_t *cdm_cache_lookup_consensus(
consensus_flavor_t flavor, time_t valid_after);
STATIC int cdm_entry_get_sha3_value(uint8_t *digest_out,
- consensus_cache_entry_t *ent,
+ struct consensus_cache_entry_t *ent,
const char *label);
STATIC int uncompress_or_set_ptr(const char **out, size_t *outlen,
char **owned_out,
- consensus_cache_entry_t *ent);
+ struct consensus_cache_entry_t *ent);
#endif /* defined(CONSDIFFMGR_PRIVATE) */
#ifdef TOR_UNIT_TESTS