diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-12-15 18:10:11 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-12-19 07:54:56 -0500 |
commit | 5e2318165dba782f6daa6620b17e0fa1e72b4b11 (patch) | |
tree | 3f2beaef55248c114d6d36083ded4989e186dfbb /src/feature/relay/relay_stub.c | |
parent | 1d0ccda5955957c6c09a081502b315ba21c7c62e (diff) | |
download | tor-5e2318165dba782f6daa6620b17e0fa1e72b4b11.tar.gz tor-5e2318165dba782f6daa6620b17e0fa1e72b4b11.zip |
Add "stub" files for disabled modules.
These modules are only built when the selected modules are disabled.
The provide stub implementations of the subsystem blocks. Later,
other stub implementations could move here.
Having real subsystem blocks here will let us handle disabled
configuration options better.
Diffstat (limited to 'src/feature/relay/relay_stub.c')
-rw-r--r-- | src/feature/relay/relay_stub.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/feature/relay/relay_stub.c b/src/feature/relay/relay_stub.c new file mode 100644 index 0000000000..a23b991862 --- /dev/null +++ b/src/feature/relay/relay_stub.c @@ -0,0 +1,20 @@ +/* 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 relay_stub.c + * @brief Stub declarations for use when relay module is disabled. + **/ + +#include "orconfig.h" +#include "feature/relay/relay_sys.h" +#include "lib/subsys/subsys.h" + +const struct subsys_fns_t sys_relay = { + .name = "relay", + .supported = false, + .level = 50, +}; |