summaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirauth_config.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2019-10-30 15:38:23 +1000
committerteor <teor@torproject.org>2019-10-31 12:34:20 +1000
commit1d4d2deea1987171dea64bf3e563b24194b6ac84 (patch)
tree1b894e2687dd977dc699b6c229d30ed556dc9758 /src/feature/dirauth/dirauth_config.h
parentfc5da4ad048af372b7765aa0d10acba05bc6d2dc (diff)
downloadtor-1d4d2deea1987171dea64bf3e563b24194b6ac84.tar.gz
tor-1d4d2deea1987171dea64bf3e563b24194b6ac84.zip
config: Move dirauth stats actions into the module
This commit: * moves dirauth stats and mtbf config actions into dirauth_config, * adds thin wrappers to make the moved code compile. The moved code is disabled when the dirauth module is disabled. Part of 32213.
Diffstat (limited to 'src/feature/dirauth/dirauth_config.h')
-rw-r--r--src/feature/dirauth/dirauth_config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirauth_config.h b/src/feature/dirauth/dirauth_config.h
index 2c67c62ecb..965472aa2d 100644
--- a/src/feature/dirauth/dirauth_config.h
+++ b/src/feature/dirauth/dirauth_config.h
@@ -16,6 +16,8 @@ typedef struct or_options_t or_options_t;
#ifdef HAVE_MODULE_DIRAUTH
+#include "lib/cc/torint.h"
+
int options_validate_dirauth_mode(const or_options_t *old_options,
or_options_t *options,
char **msg);
@@ -33,6 +35,9 @@ int options_validate_dirauth_testing(const or_options_t *old_options,
char **msg);
int options_act_dirauth(const or_options_t *old_options);
+int options_act_dirauth_mtbf(const or_options_t *old_options);
+int options_act_dirauth_stats(const or_options_t *old_options,
+ bool *print_notice_out);
#else
@@ -75,6 +80,12 @@ options_validate_dirauth_mode(const or_options_t *old_options,
#define options_act_dirauth(old_options) \
(((void)(old_options)),0)
+#define options_act_dirauth_mtbf(old_options) \
+ (((void)(old_options)),0)
+
+#define options_act_dirauth_stats(old_options, print_notice_out) \
+ (((void)(old_options)),((void)(print_notice_out)),0)
+
#endif /* defined(HAVE_MODULE_DIRAUTH) */
#endif /* !defined(TOR_FEATURE_DIRAUTH_DIRAUTH_CONFIG_H) */