subsysmgr.h 864 B

1234567891011121314151617181920212223242526272829
  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. struct pubsub_builder_t;
  13. int subsystems_add_pubsub_upto(struct pubsub_builder_t *builder,
  14. int target_level);
  15. int subsystems_add_pubsub(struct pubsub_builder_t *builder);
  16. void subsystems_shutdown(void);
  17. void subsystems_shutdown_downto(int level);
  18. void subsystems_prefork(void);
  19. void subsystems_postfork(void);
  20. void subsystems_thread_cleanup(void);
  21. #endif /* !defined(TOR_SUBSYSMGR_T) */