11 #ifndef TOR_ROUTERSET_H
12 #define TOR_ROUTERSET_H
17 const char *description);
35 const routerset_t *excludeset,
39 const routerset_t *routerset);
44 #define routerset_free(rs) FREE_AND_NULL(routerset_t, routerset_free_, (rs))
49 typedef routerset_t *config_decl_ROUTERSET;
51 #ifdef ROUTERSET_PRIVATE
57 const char *nickname,
const char *id_digest,
94 unsigned int fragile:1;
Implements a variable-sized (but non-resizeable) bit-array.
STATIC int routerset_contains(const routerset_t *set, const tor_addr_t *addr, uint16_t orport, const char *nickname, const char *id_digest, country_t country)
STATIC char * routerset_get_countryname(const char *c)
int routerset_contains_bridge(const routerset_t *set, const bridge_info_t *bridge)
int routerset_needs_geoip(const routerset_t *set)
int routerset_is_empty(const routerset_t *set)
const struct var_type_def_t ROUTERSET_type_defn
void routerset_free_(routerset_t *routerset)
int routerset_equal(const routerset_t *old, const routerset_t *new)
int routerset_is_list(const routerset_t *set)
int routerset_contains_routerstatus(const routerset_t *set, const routerstatus_t *rs, country_t country)
int routerset_contains_node(const routerset_t *set, const node_t *node)
void routerset_get_all_nodes(smartlist_t *out, const routerset_t *routerset, const routerset_t *excludeset, int running_only)
int routerset_add_unknown_ccs(routerset_t **setp, int only_if_some_cc_set)
int routerset_contains_extendinfo(const routerset_t *set, const extend_info_t *ei)
int routerset_parse(routerset_t *target, const char *s, const char *description)
int routerset_len(const routerset_t *set)
routerset_t * routerset_new(void)
char * routerset_to_string(const routerset_t *routerset)
void routerset_refresh_countries(routerset_t *rs)
void routerset_subtract_nodes(smartlist_t *out, const routerset_t *routerset)
void routerset_union(routerset_t *target, const routerset_t *source)
int routerset_contains_router(const routerset_t *set, const routerinfo_t *ri, country_t country)