tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

relay_stub.c (946B)


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