diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-12-15 11:46:55 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-12-19 07:54:56 -0500 |
commit | ffa3499d81823eb21811a479c31b59f1bfb5bc61 (patch) | |
tree | 3841d1247c282792a1f4c3952ab09c305b66e718 /src/feature/dirauth/dirauth_options_st.h | |
parent | 419ba97df5bd168bf773478270c0043f20328e15 (diff) | |
download | tor-ffa3499d81823eb21811a479c31b59f1bfb5bc61.tar.gz tor-ffa3499d81823eb21811a479c31b59f1bfb5bc61.zip |
Add config object for dirauth; move one option there.
I've chosen the "AuthDirMaxServersPerAddr" option here for
simplicity, since it is used literally nowhere else besides the dirauth
module. Once we have all the infrastructure in place for this, we
can move more options into this structure.
Diffstat (limited to 'src/feature/dirauth/dirauth_options_st.h')
-rw-r--r-- | src/feature/dirauth/dirauth_options_st.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirauth_options_st.h b/src/feature/dirauth/dirauth_options_st.h new file mode 100644 index 0000000000..93b9cb45bc --- /dev/null +++ b/src/feature/dirauth/dirauth_options_st.h @@ -0,0 +1,22 @@ +/* Copyright (c) 2001 Matej Pfajfar. + * Copyright (c) 2001-2004, Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2019, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * @file dirauth_options_st.h + * @brief Structure dirauth_options_t to hold directory authority options. + **/ + +#ifndef TOR_FEATURE_DIRAUTH_DIRAUTH_OPTIONS_ST_H +#define TOR_FEATURE_DIRAUTH_DIRAUTH_OPTIONS_ST_H + +#include "lib/conf/confdecl.h" +#define CONF_CONTEXT STRUCT +#include "feature/dirauth/dirauth_options.inc" +#undef CONF_CONTEXT + +typedef struct dirauth_options_t dirauth_options_t; + +#endif /* !defined(TOR_FEATURE_DIRAUTH_DIRAUTH_OPTIONS_ST_H) */ |