Tor  0.4.7.0-alpha-dev
dirauth_stub.c
Go to the documentation of this file.
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_stub.c
9  * @brief Stub declarations for use when dirauth module is disabled.
10  **/
11 
12 #include "orconfig.h"
14 #include "lib/conf/conftypes.h"
15 #include "lib/conf/confdecl.h"
16 #include "lib/subsys/subsys.h"
17 
18 /* Declare the options field table for dirauth_options */
19 #define CONF_CONTEXT STUB_TABLE
21 #undef CONF_CONTEXT
22 
23 static const config_format_t dirauth_options_stub_fmt = {
24  .vars = dirauth_options_t_vars,
25 };
26 
27 const struct subsys_fns_t sys_dirauth = {
28  .name = "dirauth",
30  .supported = false,
31  .level = DIRAUTH_SUBSYS_LEVEL,
32 
33  .options_format = &dirauth_options_stub_fmt
34 };
Macros for generating a configuration struct from a list of its individual fields.
Types used to specify configurable options.
Declare configuration options for the crypto_ops module.
Header for dirauth_sys.c.
#define DIRAUTH_SUBSYS_LEVEL
Definition: dirauth_sys.h:26
const config_var_t * vars
Definition: conftypes.h:353
const char * name
Definition: subsys.h:43
Types used to declare a subsystem.
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211