tor  0.4.2.0-alpha-dev
subsysmgr.h
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 
6 #ifndef TOR_SUBSYSMGR_T
7 #define TOR_SUBSYSMGR_T
8 
9 #include "lib/subsys/subsys.h"
10 
11 extern const struct subsys_fns_t *tor_subsystems[];
12 extern const unsigned n_tor_subsystems;
13 
14 int subsystems_init(void);
15 int subsystems_init_upto(int level);
16 
17 struct pubsub_builder_t;
18 int subsystems_add_pubsub_upto(struct pubsub_builder_t *builder,
19  int target_level);
20 int subsystems_add_pubsub(struct pubsub_builder_t *builder);
21 
22 void subsystems_shutdown(void);
23 void subsystems_shutdown_downto(int level);
24 
25 void subsystems_prefork(void);
26 void subsystems_postfork(void);
27 void subsystems_thread_cleanup(void);
28 
29 #endif /* !defined(TOR_SUBSYSMGR_T) */
int level
Definition: subsys.h:41
struct pubsub_builder_t pubsub_builder_t
Definition: pubsub_build.h:28