Tor  0.4.7.0-alpha-dev
relay_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 relay_stub.c
9  * @brief Stub declarations for use when relay module is disabled.
10  **/
11 
12 #include "orconfig.h"
14 #include "lib/subsys/subsys.h"
15 
16 const struct subsys_fns_t sys_relay = {
17  .name = "relay",
19  .supported = false,
20  .level = RELAY_SUBSYS_LEVEL,
21 };
Header for feature/relay/relay_sys.c.
#define RELAY_SUBSYS_LEVEL
Definition: relay_sys.h:23
const char * name
Definition: subsys.h:43
Types used to declare a subsystem.
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211