tor  0.4.2.0-alpha-dev
subsystem_list.c
1 /* Copyright (c) 2003-2004, Roger Dingledine
2  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3  * Copyright (c) 2007-2019, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
5 
6 #include "orconfig.h"
7 #include "app/main/subsysmgr.h"
9 #include "lib/cc/torint.h"
10 
11 #include "core/mainloop/mainloop_sys.h"
13 #include "core/or/or_sys.h"
18 #include "lib/crypt_ops/crypto_sys.h"
19 #include "lib/err/torerr_sys.h"
20 #include "lib/log/log_sys.h"
21 #include "lib/net/network_sys.h"
24 #include "lib/thread/thread_sys.h"
25 #include "lib/time/time_sys.h"
26 #include "lib/tls/tortls_sys.h"
28 #include "lib/evloop/evloop_sys.h"
29 
30 #include "feature/dirauth/dirauth_sys.h"
31 
32 #include <stddef.h>
33 
39 const subsys_fns_t *tor_subsystems[] = {
40  &sys_winprocess,
41  &sys_torerr,
42 
43  &sys_wallclock,
44  &sys_threads,
45  &sys_logging,
46 
47  &sys_time,
48  &sys_network,
49 
50  &sys_compress,
51  &sys_crypto,
52  &sys_tortls,
53  &sys_process,
54 
55  &sys_orconn_event,
56  &sys_ocirc_event,
57  &sys_btrack,
58 
59  &sys_evloop,
60 
61  &sys_mainloop,
62  &sys_or,
63 
64  &sys_relay,
65 
66 #ifdef HAVE_MODULE_DIRAUTH
67  &sys_dirauth,
68 #endif
69 };
70 
71 const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems);
Declare subsystem object for the origin circuit event module.
Declare subsystem object for the tortls module.
Integer definitions used throughout Tor.
Header for feature/relay/relay_sys.c.
Declare subsystem object for the time module.
Declare subsystem object for the event loop module.
Declare subsystem object for torerr.c.
Declare subsystem object for the OR connection event module.
Utility macros to handle different features and behavior in different compilers.
Declare subsystem object for the logging module.
Header for core/or/or_sys.c.
Declare subsystem object for the bootstrap tracker susbystem.
#define ARRAY_LENGTH(x)
Declare subsystem object for winprocess.c.
Declare subsystem object for the wallclock module.
Declare subsystem object for the compress module.
Declare subsystem object for the process module.