Tor 0.4.9.0-alpha-dev
subsystem_list.c
Go to the documentation of this file.
1/* Copyright (c) 2003-2004, Roger Dingledine
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2021, The Tor Project, Inc. */
4/* See LICENSE for licensing information */
5
6/**
7 * @file subsystem_list.c
8 * @brief List of Tor's subsystems.
9 **/
10
11#include "orconfig.h"
12#include "app/main/subsysmgr.h"
14#include "lib/cc/torint.h"
15
17#include "core/or/conflux_sys.h"
18#include "core/or/dos_sys.h"
19#include "core/or/or_sys.h"
23#include "lib/err/torerr_sys.h"
24#include "lib/log/log_sys.h"
25#include "lib/net/network_sys.h"
29#include "lib/time/time_sys.h"
30#include "lib/tls/tortls_sys.h"
31#include "lib/trace/trace_sys.h"
34
36#include "feature/hs/hs_sys.h"
39
40#include <stddef.h>
41
42/**
43 * Global list of the subsystems in Tor, in the order of their initialization.
44 * Want to know the exact level numbers?
45 * We'll implement a level dump command in #31614.
46 **/
48 &sys_winprocess,
49 &sys_torerr,
50
52 &sys_logging,
53 &sys_threads,
54
55 &sys_tracing,
56
57 &sys_time,
58
59 &sys_crypto,
60 &sys_compress,
61 &sys_network,
62 &sys_tortls,
63
64 &sys_evloop,
65 &sys_process,
66
67 &sys_mainloop,
68 &sys_conflux,
69 &sys_or,
70 &sys_dos,
71
72 &sys_relay,
73 &sys_hs,
74
75 &sys_btrack,
76
77 &sys_dirauth,
78 &sys_metrics,
79};
80
81const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems);
const subsys_fns_t sys_wallclock
Definition: approx_time.c:60
Declare subsystem object for the bootstrap tracker susbystem.
Utility macros to handle different features and behavior in different compilers.
#define ARRAY_LENGTH(x)
Declare subsystem object for the compress module.
Header file for conflux_sys.c.
Declare subsystem object for the crypto module.
Header for dirauth_sys.c.
Header for core/or/dos_sys.c.
Declare subsystem object for the event loop module.
Header for feature/hs/hs_sys.c.
Declare subsystem object for the logging module.
Header for mainloop_sys.c.
Header for feature/metrics/metrics_sys.c.
Declare subsystem object for the network module.
Header for core/or/or_sys.c.
Declare subsystem object for the process module.
Header for feature/relay/relay_sys.c.
Header for subsysmgr.c.
const subsys_fns_t * tor_subsystems[]
Declare subsystem object for threads library.
Declare subsystem object for the time module.
Declare subsystem object for torerr.c.
Integer definitions used throughout Tor.
Declare subsystem object for the tortls module.
Declare subsystem object for the wallclock module.
Declare subsystem object for winprocess.c.