diff options
author | Linus Nordberg <linus@nordberg.se> | 2012-03-27 15:00:34 +0200 |
---|---|---|
committer | Linus Nordberg <linus@torproject.org> | 2012-07-19 18:21:20 +0200 |
commit | 631ec5c4fe4d5535d91e8e1e3597fbaa687b8790 (patch) | |
tree | 050aa6d4a7ab18ed66617412bfb31aeb709aaaf0 /src/or/nodelist.h | |
parent | 24451e6f7d6813642cc3b092bf085fdbb4a9aefc (diff) | |
download | tor-631ec5c4fe4d5535d91e8e1e3597fbaa687b8790.tar.gz tor-631ec5c4fe4d5535d91e8e1e3597fbaa687b8790.zip |
Move last_reachable and testing_since from routerinfo_t to node_t.
Diffstat (limited to 'src/or/nodelist.h')
-rw-r--r-- | src/or/nodelist.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/nodelist.h b/src/or/nodelist.h index 1e9da88d4e..b110fe52f7 100644 --- a/src/or/nodelist.h +++ b/src/or/nodelist.h @@ -15,7 +15,8 @@ node_t *node_get_mutable_by_id(const char *identity_digest); const node_t *node_get_by_id(const char *identity_digest); const node_t *node_get_by_hex_id(const char *identity_digest); -node_t *nodelist_add_routerinfo(routerinfo_t *ri); +node_t *nodelist_replace_routerinfo(routerinfo_t *old, routerinfo_t *new); +node_t *nodelist_add_routerinfo(node_t *node, routerinfo_t *ri); node_t *nodelist_add_microdesc(microdesc_t *md); void nodelist_set_consensus(networkstatus_t *ns); |