subsystem_list.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/ocirc_event_sys.h"
  10. #include "core/or/orconn_event_sys.h"
  11. #include "lib/compress/compress_sys.h"
  12. #include "lib/crypt_ops/crypto_sys.h"
  13. #include "lib/err/torerr_sys.h"
  14. #include "lib/log/log_sys.h"
  15. #include "lib/net/network_sys.h"
  16. #include "lib/process/winprocess_sys.h"
  17. #include "lib/thread/thread_sys.h"
  18. #include "lib/time/time_sys.h"
  19. #include "lib/tls/tortls_sys.h"
  20. #include "lib/wallclock/wallclock_sys.h"
  21. #include <stddef.h>
  22. /**
  23. * Global list of the subsystems in Tor, in the order of their initialization.
  24. **/
  25. const subsys_fns_t *tor_subsystems[] = {
  26. &sys_winprocess, /* -100 */
  27. &sys_torerr, /* -100 */
  28. &sys_wallclock, /* -99 */
  29. &sys_threads, /* -95 */
  30. &sys_logging, /* -90 */
  31. &sys_time, /* -90 */
  32. &sys_network, /* -90 */
  33. &sys_compress, /* -70 */
  34. &sys_crypto, /* -60 */
  35. &sys_tortls, /* -50 */
  36. &sys_orconn_event, /* -40 */
  37. &sys_ocirc_event, /* -39 */
  38. };
  39. const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems);