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-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-01 18:34:07 +01:00
|
|
|
#include "lib/wallclock/wallclock_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-01 17:55:10 +01:00
|
|
|
&sys_winprocess,
|
2018-11-01 17:40:55 +01:00
|
|
|
&sys_torerr,
|
2018-11-01 18:34:07 +01:00
|
|
|
&sys_wallclock,
|
2018-11-01 18:14:43 +01:00
|
|
|
&sys_threads,
|
2018-11-01 18:26:33 +01:00
|
|
|
&sys_logging,
|
2018-11-02 16:11:21 +01:00
|
|
|
&sys_network,
|
2018-11-01 16:51:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems);
|