subsysmgr.h 528 B

1234567891011121314151617181920
  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. #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. #endif