diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-05-11 17:20:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 18:04:44 -0400 |
commit | 3a492d31d5c50ef3b766881ae1d765c296d55797 (patch) | |
tree | c4ae30aa130eb1ed56c38cae719d15dc4f09e7b2 /src/or/routerlist.h | |
parent | e34d0d3365f5263d2888d63a4d58dc479f191565 (diff) | |
download | tor-3a492d31d5c50ef3b766881ae1d765c296d55797.tar.gz tor-3a492d31d5c50ef3b766881ae1d765c296d55797.zip |
Download microdescriptors if you're a cache
This commit adds some functions to see what microdescriptors we're missing,
and adds fetch-microdesc/store-microdesc logic to the directory code.
Diffstat (limited to 'src/or/routerlist.h')
-rw-r--r-- | src/or/routerlist.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/routerlist.h b/src/or/routerlist.h index 574bce7ffc..804be2abaa 100644 --- a/src/or/routerlist.h +++ b/src/or/routerlist.h @@ -192,5 +192,11 @@ int hid_serv_get_responsible_directories(smartlist_t *responsible_dirs, int hid_serv_acting_as_directory(void); int hid_serv_responsible_for_desc_id(const char *id); +void list_pending_microdesc_downloads(digestmap_t *result); +void launch_descriptor_downloads(int purpose, + smartlist_t *downloadable, + routerstatus_t *source, + time_t now); + #endif |