Tor 0.4.9.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"
16
17const struct subsys_fns_t sys_relay = {
18 .name = "relay",
20 .supported = false,
21 .level = RELAY_SUBSYS_LEVEL,
22};
23
24void
25relay_increment_est_intro_action(est_intro_action_t action)
26{
27 (void)action;
28}
29
30void
31relay_increment_est_rend_action(est_rend_action_t action)
32{
33 (void)action;
34}
35
36void
37relay_increment_intro1_action(intro1_action_t action)
38{
39 (void)action;
40}
41
42void
43relay_increment_rend1_action(rend1_action_t action)
44{
45 (void)action;
46}
Header for feature/relay/relay_metrics.c.
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