aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirauth/dirvote.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-04-25 11:04:47 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-05-01 10:07:08 -0400
commitfdc01cb40e1c982c273f7e9685c586ee1ef89e30 (patch)
tree00e4e278c93dcdc74dbceeffdf7b46590e964eea /src/or/dirauth/dirvote.h
parent6ee6533fd89018036f11c5ee62897f8a2b6c39c0 (diff)
downloadtor-fdc01cb40e1c982c273f7e9685c586ee1ef89e30.tar.gz
tor-fdc01cb40e1c982c273f7e9685c586ee1ef89e30.zip
dirvote: Move the handling of GET /tor/status-vote to dirauth module
In order to further isolate the dirauth code into its module, this moves the handling of the directory request GET /tor/status-vote/* into the module. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/dirauth/dirvote.h')
-rw-r--r--src/or/dirauth/dirvote.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/dirauth/dirvote.h b/src/or/dirauth/dirvote.h
index 9682c60364..69d628766f 100644
--- a/src/or/dirauth/dirvote.h
+++ b/src/or/dirauth/dirvote.h
@@ -101,6 +101,8 @@ void dirvote_free_all(void);
void dirvote_parse_sr_commits(networkstatus_t *ns, smartlist_t *tokens);
void dirvote_clear_commits(networkstatus_t *ns);
+void dirvote_dirreq_get_status_vote(const char *url, smartlist_t *items,
+ smartlist_t *dir_items);
#else /* HAVE_MODULE_DIRAUTH */
@@ -129,6 +131,15 @@ dirvote_clear_commits(networkstatus_t *ns)
(void) ns;
}
+static inline void
+dirvote_dirreq_get_status_vote(const char *url, smartlist_t *items,
+ smartlist_t *dir_items)
+{
+ (void) url;
+ (void) items;
+ (void) dir_items;
+}
+
#endif /* HAVE_MODULE_DIRAUTH */
void dirvote_recalculate_timing(const or_options_t *options, time_t now);