2018-11-01 16:51:33 +01:00
|
|
|
/* Copyright (c) 2003-2004, Roger Dingledine
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
|
|
* Copyright (c) 2007-2018, The Tor Project, Inc. */
|
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
|
|
|
#include "orconfig.h"
|
|
|
|
#include "app/main/subsysmgr.h"
|
|
|
|
#include "lib/cc/compat_compiler.h"
|
|
|
|
#include "lib/cc/torint.h"
|
|
|
|
|
2018-12-17 00:01:25 +01:00
|
|
|
#include "core/or/ocirc_event_sys.h"
|
2018-12-16 23:05:58 +01:00
|
|
|
#include "core/or/orconn_event_sys.h"
|
2018-12-17 16:45:09 +01:00
|
|
|
#include "feature/control/btrack_sys.h"
|
2018-11-02 23:34:56 +01:00
|
|
|
#include "lib/compress/compress_sys.h"
|
2018-11-02 16:21:06 +01:00
|
|
|
#include "lib/crypt_ops/crypto_sys.h"
|
2018-11-01 17:40:55 +01:00
|
|
|
#include "lib/err/torerr_sys.h"
|
2018-11-01 18:34:07 +01:00
|
|
|
#include "lib/log/log_sys.h"
|
2018-11-02 16:11:21 +01:00
|
|
|
#include "lib/net/network_sys.h"
|
2018-11-01 17:55:10 +01:00
|
|
|
#include "lib/process/winprocess_sys.h"
|
2018-11-01 18:14:43 +01:00
|
|
|
#include "lib/thread/thread_sys.h"
|
2018-11-02 23:09:44 +01:00
|
|
|
#include "lib/time/time_sys.h"
|
2018-11-02 23:46:35 +01:00
|
|
|
#include "lib/tls/tortls_sys.h"
|
2018-11-01 18:34:07 +01:00
|
|
|
#include "lib/wallclock/wallclock_sys.h"
|
2018-12-20 15:07:05 +01:00
|
|
|
#include "lib/process/process_sys.h"
|
2018-11-01 17:40:55 +01:00
|
|
|
|
2018-11-01 16:51:33 +01:00
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Global list of the subsystems in Tor, in the order of their initialization.
|
|
|
|
**/
|
|
|
|
const subsys_fns_t *tor_subsystems[] = {
|
2018-11-09 17:15:27 +01:00
|
|
|
&sys_winprocess, /* -100 */
|
2018-11-10 04:17:18 +01:00
|
|
|
&sys_torerr, /* -100 */
|
|
|
|
&sys_wallclock, /* -99 */
|
|
|
|
&sys_threads, /* -95 */
|
|
|
|
&sys_logging, /* -90 */
|
|
|
|
&sys_time, /* -90 */
|
|
|
|
&sys_network, /* -90 */
|
|
|
|
&sys_compress, /* -70 */
|
|
|
|
&sys_crypto, /* -60 */
|
|
|
|
&sys_tortls, /* -50 */
|
2018-12-21 20:12:20 +01:00
|
|
|
&sys_process, /* -35 */
|
2018-12-21 20:22:11 +01:00
|
|
|
|
|
|
|
&sys_orconn_event, /* -33 */
|
|
|
|
&sys_ocirc_event, /* -32 */
|
2018-12-17 16:45:09 +01:00
|
|
|
&sys_btrack, /* -30 */
|
2018-11-01 16:51:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems);
|