diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-18 17:43:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-18 17:43:54 +0000 |
commit | 3347c1741d299d9ea8143b73bf063d3e4e23a08e (patch) | |
tree | 4eb23ee729c6010dbaf4961c5c96dac361d34d89 /src/or/or.h | |
parent | 95514b32a559c85cc5933f411035468b12ade68f (diff) | |
download | tor-3347c1741d299d9ea8143b73bf063d3e4e23a08e.tar.gz tor-3347c1741d299d9ea8143b73bf063d3e4e23a08e.zip |
Refactor routerlist access slightly: always use router_get_by_routerlist(); change its interface; add modifier functions to add/remove elements from the current routerlist (so we can add indices).
svn:r5276
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/or.h b/src/or/or.h index 45519fc5e5..47009592d5 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2135,9 +2135,10 @@ routerinfo_t *router_get_by_hexdigest(const char *hexdigest); routerinfo_t *router_get_by_digest(const char *digest); routerinfo_t *router_get_by_descriptor_digest(const char *digest); int router_digest_is_trusted_dir(const char *digest); -void router_get_routerlist(routerlist_t **prouterlist); +routerlist_t *router_get_routerlist(void); void routerlist_reset_warnings(void); void routerlist_free(routerlist_t *routerlist); +void routerlist_remove(routerlist_t *rl, routerinfo_t *ri, int idx); void routerinfo_free(routerinfo_t *router); void routerstatus_free(routerstatus_t *routerstatus); void networkstatus_free(networkstatus_t *networkstatus); |