diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-17 12:55:23 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-19 08:26:10 -0500 |
commit | 4f9548f89339fe1fab1863ac2b2c72d09f7224ef (patch) | |
tree | 777201ea0407f40fe8963f79be329fec89fb6c47 /src/feature/nodelist/nodelist.h | |
parent | aa1d767e6b98efa4ffa7d39dba2272949aae2f65 (diff) | |
download | tor-4f9548f89339fe1fab1863ac2b2c72d09f7224ef.tar.gz tor-4f9548f89339fe1fab1863ac2b2c72d09f7224ef.zip |
Expose more nodelist.c functions to tests
Diffstat (limited to 'src/feature/nodelist/nodelist.h')
-rw-r--r-- | src/feature/nodelist/nodelist.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/feature/nodelist/nodelist.h b/src/feature/nodelist/nodelist.h index 87ea544db2..32300eb00c 100644 --- a/src/feature/nodelist/nodelist.h +++ b/src/feature/nodelist/nodelist.h @@ -154,10 +154,16 @@ int count_loading_descriptors_progress(void); #ifdef NODELIST_PRIVATE +STATIC int node_nickname_matches(const node_t *node, const char *nickname); +STATIC int node_in_nickname_smartlist(const smartlist_t *lst, + const node_t *node); +STATIC int node_family_contains(const node_t *n1, const node_t *n2); +STATIC bool node_has_declared_family(const node_t *node); +STATIC void node_lookup_declared_family(smartlist_t *out, const node_t *node); + #ifdef TOR_UNIT_TESTS -STATIC void -node_set_hsdir_index(node_t *node, const networkstatus_t *ns); +STATIC void node_set_hsdir_index(node_t *node, const networkstatus_t *ns); #endif /* defined(TOR_UNIT_TESTS) */ |