12 #ifndef TOR_MICRODESC_H
13 #define TOR_MICRODESC_H
21 int no_save, time_t listed_at,
37 int downloadable_only,
38 digest256map_t *skip);
41 #define microdesc_free(md) do { \
42 microdesc_free_((md), __FILE__, __LINE__); \
void microdesc_reset_outdated_dirservers_list(void)
void microdesc_free_all(void)
int usable_consensus_flavor(void)
int we_fetch_router_descriptors(const or_options_t *options)
void microdesc_note_outdated_dirserver(const char *relay_digest)
smartlist_t * microdescs_add_list_to_cache(microdesc_cache_t *cache, smartlist_t *descriptors, saved_location_t where, int no_save)
void microdesc_check_counts(void)
void microdesc_free_(microdesc_t *md, const char *fname, int line)
int microdesc_cache_rebuild(microdesc_cache_t *cache, int force)
void microdesc_cache_clear(microdesc_cache_t *cache)
smartlist_t * microdesc_list_missing_digest256(networkstatus_t *ns, microdesc_cache_t *cache, int downloadable_only, digest256map_t *skip)
int microdesc_cache_reload(microdesc_cache_t *cache)
microdesc_t * microdesc_cache_lookup_by_digest256(microdesc_cache_t *cache, const char *d)
smartlist_t * microdescs_add_to_cache(microdesc_cache_t *cache, const char *s, const char *eos, saved_location_t where, int no_save, time_t listed_at, smartlist_t *requested_digests256)
microdesc_cache_t * get_microdesc_cache(void)
void update_microdesc_downloads(time_t now)
int microdesc_relay_is_outdated_dirserver(const char *relay_digest)
void update_microdescs_from_networkstatus(time_t now)
int we_fetch_microdescriptors(const or_options_t *options)
int we_use_microdescriptors_for_circuits(const or_options_t *options)
void microdesc_cache_clean(microdesc_cache_t *cache, time_t cutoff, int force)
#define MOCK_DECL(rv, funcname, arglist)