diff options
author | teor <teor@torproject.org> | 2019-01-30 15:15:41 +0100 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-01-30 15:15:41 +0100 |
commit | cdda3dc48457af31a9d1b3df1222d449b736f3b1 (patch) | |
tree | e174afe512cb3e2c42053e9ecea250b4ae143800 /src/feature/nodelist/nodelist.h | |
parent | d9010c5b67a60e9f0b9051ba6597005e33e58266 (diff) | |
download | tor-cdda3dc48457af31a9d1b3df1222d449b736f3b1.tar.gz tor-cdda3dc48457af31a9d1b3df1222d449b736f3b1.zip |
hs: Move get_lspecs_from_node to nodelist.c
Also:
* rename to node_get_link_specifier_smartlist
* rewrite to return a smartlist
* add link_specifier_smartlist_free
Part of 23576.
Diffstat (limited to 'src/feature/nodelist/nodelist.h')
-rw-r--r-- | src/feature/nodelist/nodelist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/feature/nodelist/nodelist.h b/src/feature/nodelist/nodelist.h index 3420959618..a3d65347a8 100644 --- a/src/feature/nodelist/nodelist.h +++ b/src/feature/nodelist/nodelist.h @@ -77,6 +77,11 @@ int node_supports_v3_hsdir(const node_t *node); int node_supports_ed25519_hs_intro(const node_t *node); int node_supports_v3_rendezvous_point(const node_t *node); const uint8_t *node_get_rsa_id_digest(const node_t *node); +smartlist_t *node_get_link_specifier_smartlist(const node_t *node, + bool direct_conn); +void link_specifier_smartlist_free_(smartlist_t *ls_list); +#define link_specifier_smartlist_free(ls_list) \ + FREE_AND_NULL(smartlist_t, link_specifier_smartlist_free_, (ls_list)) int node_has_ipv6_addr(const node_t *node); int node_has_ipv6_orport(const node_t *node); |