subsysmgr.h 630 B

123456789101112131415161718192021222324
  1. /* Copyright (c) 2003-2004, Roger Dingledine
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2019, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #ifndef TOR_SUBSYSMGR_T
  6. #define TOR_SUBSYSMGR_T
  7. #include "lib/subsys/subsys.h"
  8. extern const struct subsys_fns_t *tor_subsystems[];
  9. extern const unsigned n_tor_subsystems;
  10. int subsystems_init(void);
  11. int subsystems_init_upto(int level);
  12. void subsystems_shutdown(void);
  13. void subsystems_shutdown_downto(int level);
  14. void subsystems_prefork(void);
  15. void subsystems_postfork(void);
  16. void subsystems_thread_cleanup(void);
  17. #endif