12 #ifndef TOR_DIRCOLLATE_H
13 #define TOR_DIRCOLLATE_H
18 typedef struct dircollator_t dircollator_t;
22 #define dircollator_free(c) \
23 FREE_AND_NULL(dircollator_t, dircollator_free_, (c))
32 #ifdef DIRCOLLATE_PRIVATE
37 struct dircollator_t {
51 digestmap_t *by_rsa_sha1;
55 struct double_digest_map by_both_ids;
61 digestmap_t *by_collated_rsa_sha1;
void dircollator_free_(dircollator_t *obj)
int dircollator_n_routers(dircollator_t *dc)
void dircollator_collate(dircollator_t *dc, int consensus_method)
void dircollator_add_vote(dircollator_t *dc, networkstatus_t *v)
dircollator_t * dircollator_new(int n_votes, int n_authorities)
vote_routerstatus_t ** dircollator_get_votes_for_router(dircollator_t *dc, int idx)
typedef HT_HEAD(hs_service_ht, hs_service_t) hs_service_ht
Master header file for Tor-specific functionality.
Macros to implement mocking and selective exposure for the test code.