Tor  0.4.6.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-2020, 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 };
SUBSYS_DECLARE_LOCATION
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211
RELAY_SUBSYS_LEVEL
#define RELAY_SUBSYS_LEVEL
Definition: relay_sys.h:23
subsys.h
Types used to declare a subsystem.
subsys_fns_t::name
const char * name
Definition: subsys.h:43
relay_sys.h
Header for feature/relay/relay_sys.c.
subsys_fns_t
Definition: subsys.h:38