aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-21 14:17:14 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-21 14:18:06 -0400
commita55bd00b0f41afca767a57e2da4a3dc6a26d2110 (patch)
tree042a7a195518927e7a85940a085ce1c4760c3b60 /src/or/directory.h
parent91a6fbcf777ae94661a2a27fc4180dcb28d1f974 (diff)
downloadtor-a55bd00b0f41afca767a57e2da4a3dc6a26d2110.tar.gz
tor-a55bd00b0f41afca767a57e2da4a3dc6a26d2110.zip
continue refactoring directory API: remove initiate_command_rend
This commit mainly moves the responsibility for directory request construction one level higher. It also allows a directory request to contain a pointer to a routerstatus, which will get turned into the correct contact information at the last minute.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index 18fe5505c7..5d27767051 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -66,6 +66,9 @@ void directory_request_set_rend_query(directory_request_t *req,
void directory_request_set_guard_state(directory_request_t *req,
struct circuit_guard_state_t *state);
+void directory_request_set_routerstatus(directory_request_t *req,
+ const routerstatus_t *rs);
+
MOCK_DECL(void, directory_initiate_command_routerstatus,
(const routerstatus_t *status,
uint8_t dir_purpose,