subsystem_list.c 744 B

12345678910111213141516171819202122232425262728
  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 "lib/err/torerr_sys.h"
  10. #include "lib/process/winprocess_sys.h"
  11. #include "lib/thread/thread_sys.h"
  12. #include "lib/log/log_sys.h"
  13. #include <stddef.h>
  14. /**
  15. * Global list of the subsystems in Tor, in the order of their initialization.
  16. **/
  17. const subsys_fns_t *tor_subsystems[] = {
  18. &sys_winprocess,
  19. &sys_torerr,
  20. &sys_threads,
  21. &sys_logging,
  22. };
  23. const unsigned n_tor_subsystems = ARRAY_LENGTH(tor_subsystems);