tor  0.4.0.1-alpha
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 void subsystems_shutdown(void);
18 void subsystems_shutdown_downto(int level);
19 
20 void subsystems_prefork(void);
21 void subsystems_postfork(void);
22 void subsystems_thread_cleanup(void);
23 
24 #endif
int level
Definition: subsys.h:41