diff options
Diffstat (limited to 'src/app/main/subsystem_list.c')
-rw-r--r-- | src/app/main/subsystem_list.c | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/app/main/subsystem_list.c b/src/app/main/subsystem_list.c new file mode 100644 index 0000000000..e32083537f --- /dev/null +++ b/src/app/main/subsystem_list.c @@ -0,0 +1,70 @@ +/* Copyright (c) 2003-2004, Roger Dingledine + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2020, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +/** + * @file subsystem_list.c + * @brief List of Tor's subsystems. + **/ + +#include "orconfig.h" +#include "app/main/subsysmgr.h" +#include "lib/cc/compat_compiler.h" +#include "lib/cc/torint.h" + +#include "core/mainloop/mainloop_sys.h" +#include "core/or/or_sys.h" +#include "feature/control/btrack_sys.h" +#include "lib/compress/compress_sys.h" +#include "lib/crypt_ops/crypto_sys.h" +#include "lib/err/torerr_sys.h" +#include "lib/log/log_sys.h" +#include "lib/net/network_sys.h" +#include "lib/process/process_sys.h" +#include "lib/llharden/winprocess_sys.h" +#include "lib/thread/thread_sys.h" +#include "lib/time/time_sys.h" +#include "lib/tls/tortls_sys.h" +#include "lib/wallclock/wallclock_sys.h" +#include "lib/evloop/evloop_sys.h" + +#include "feature/dirauth/dirauth_sys.h" +#include "feature/relay/relay_sys.h" + +#include <stddef.h> + +/** + * Global list of the subsystems in Tor, in the order of their initialization. + * Want to know the exact level numbers? + * We'll implement a level dump command in #31614. + **/ +const subsys_fns_t *tor_subsystems[] = { + &sys_winprocess, + &sys_torerr, + + &sys_wallclock, + &sys_logging, + &sys_threads, + + &sys_time, + + &sys_crypto, + &sys_compress, + &sys_network, + &sys_tortls, + + &sys_evloop, + &sys_process, + + &sys_mainloop, + &sys_or, + + &sys_relay, + + &sys_btrack, + + &sys_dirauth, +}; + +const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems); |