summaryrefslogtreecommitdiff
path: root/src/feature/relay/relay_stub.c
blob: 45310963168a3c1c4994142a087437a6682b5b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* Copyright (c) 2001 Matej Pfajfar.
 * Copyright (c) 2001-2004, Roger Dingledine.
 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
 * Copyright (c) 2007-2021, 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"
#include "feature/relay/relay_metrics.h"

const struct subsys_fns_t sys_relay = {
  .name = "relay",
  SUBSYS_DECLARE_LOCATION(),
  .supported = false,
  .level = RELAY_SUBSYS_LEVEL,
};

void
relay_increment_est_intro_action(est_intro_action_t action)
{
  (void)action;
}

void
relay_increment_est_rend_action(est_rend_action_t action)
{
  (void)action;
}

void
relay_increment_intro1_action(intro1_action_t action)
{
  (void)action;
}

void
relay_increment_rend1_action(rend1_action_t action)
{
  (void)action;
}