subsystem_list.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2018, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #include "orconfig.h"
  6. #include "app/main/subsysmgr.h"
  7. #include "lib/cc/compat_compiler.h"
  8. #include "lib/cc/torint.h"
  9. #include "core/or/orconn_event_sys.h"
  10. #include "lib/compress/compress_sys.h"
  11. #include "lib/crypt_ops/crypto_sys.h"
  12. #include "lib/err/torerr_sys.h"
  13. #include "lib/log/log_sys.h"
  14. #include "lib/net/network_sys.h"
  15. #include "lib/process/winprocess_sys.h"
  16. #include "lib/thread/thread_sys.h"
  17. #include "lib/time/time_sys.h"
  18. #include "lib/tls/tortls_sys.h"
  19. #include "lib/wallclock/wallclock_sys.h"
  20. #include <stddef.h>
  21. /**
  22. * Global list of the subsystems in Tor, in the order of their initialization.
  23. **/
  24. const subsys_fns_t *tor_subsystems[] = {
  25. &sys_winprocess, /* -100 */
  26. &sys_torerr, /* -100 */
  27. &sys_wallclock, /* -99 */
  28. &sys_threads, /* -95 */
  29. &sys_logging, /* -90 */
  30. &sys_time, /* -90 */
  31. &sys_network, /* -90 */
  32. &sys_compress, /* -70 */
  33. &sys_crypto, /* -60 */
  34. &sys_tortls, /* -50 */
  35. &sys_orconn_event, /* -40 */
  36. };
  37. const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems);