Tor  0.4.7.0-alpha-dev
hs_opts_st.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * @file dirauth_options_st.h
9  * @brief Structure hs_opts_t to hold options for a single hidden service.
10  **/
11 
12 #ifndef TOR_FEATURE_HS_HS_OPTS_ST_H
13 #define TOR_FEATURE_HS_HS_OPTS_ST_H
14 
15 #include "lib/conf/confdecl.h"
16 #define CONF_CONTEXT STRUCT
17 #include "feature/hs/hs_options.inc"
18 #undef CONF_CONTEXT
19 
20 /**
21  * An hs_opts_t holds the parsed options for a single HS configuration
22  * section.
23  *
24  * This name ends with 'opts' instead of 'options' to signal that it is not
25  * handled directly by the or_options_t configuration manager, but that
26  * first we partition the "HiddenService*" options by section.
27  **/
28 typedef struct hs_opts_t hs_opts_t;
29 
30 #endif /* !defined(TOR_FEATURE_HS_HS_OPTS_ST_H) */
Macros for generating a configuration struct from a list of its individual fields.