aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/voteflags.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-30 12:42:33 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-02 09:22:13 -0400
commit6f42efaa5926a2f1be89e3b591311f2130931db8 (patch)
treee4cc3cd0485c24e4c4362c32e66f6b46ec2e92ee /src/feature/dirauth/voteflags.h
parent996f7c75ba6abd9c4bc884f2c9a3b62889da9134 (diff)
downloadtor-6f42efaa5926a2f1be89e3b591311f2130931db8.tar.gz
tor-6f42efaa5926a2f1be89e3b591311f2130931db8.zip
Move voteflags.[ch] to become dirauth only.
For various reasons, this was a nontrivial movement. There are several places in the code where we do something like "update the flags on this routerstatus or node if we're an authority", and at least one where we pretended to be an authority when we weren't.
Diffstat (limited to 'src/feature/dirauth/voteflags.h')
-rw-r--r--src/feature/dirauth/voteflags.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/feature/dirauth/voteflags.h b/src/feature/dirauth/voteflags.h
index 18b29a5183..ee809a290d 100644
--- a/src/feature/dirauth/voteflags.h
+++ b/src/feature/dirauth/voteflags.h
@@ -12,18 +12,20 @@
#ifndef TOR_VOTEFLAGS_H
#define TOR_VOTEFLAGS_H
+#ifdef HAVE_MODULE_DIRAUTH
void dirserv_set_router_is_running(routerinfo_t *router, time_t now);
char *dirserv_get_flag_thresholds_line(void);
void dirserv_compute_bridge_flag_thresholds(void);
int running_long_enough_to_decide_unreachable(void);
-void set_routerstatus_from_routerinfo(routerstatus_t *rs,
- node_t *node,
- const routerinfo_t *ri,
- time_t now,
- int listbadexits);
+void dirauth_set_routerstatus_from_routerinfo(routerstatus_t *rs,
+ node_t *node,
+ const routerinfo_t *ri,
+ time_t now,
+ int listbadexits);
void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil);
+#endif
void dirserv_set_bridges_running(time_t now);