diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-01 11:51:33 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-05 09:22:02 -0500 |
commit | 7bb76b24cf755799b7950ef078ac5ccf4d6e3a8a (patch) | |
tree | d36334e1f0ab425736864a40e6d0cd9ff3f39064 /src/app/main/subsysmgr.h | |
parent | 0ce1f2d46646fd73abee56888650288055f16a53 (diff) | |
download | tor-7bb76b24cf755799b7950ef078ac5ccf4d6e3a8a.tar.gz tor-7bb76b24cf755799b7950ef078ac5ccf4d6e3a8a.zip |
Code to manage the list of subsystems.
Diffstat (limited to 'src/app/main/subsysmgr.h')
-rw-r--r-- | src/app/main/subsysmgr.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/app/main/subsysmgr.h b/src/app/main/subsysmgr.h new file mode 100644 index 0000000000..c9b892eee4 --- /dev/null +++ b/src/app/main/subsysmgr.h @@ -0,0 +1,20 @@ +/* Copyright (c) 2003-2004, Roger Dingledine + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2018, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#ifndef TOR_SUBSYSMGR_T +#define TOR_SUBSYSMGR_T + +#include "lib/subsys/subsys.h" + +extern const struct subsys_fns_t *tor_subsystems[]; +extern const unsigned n_tor_subsystems; + +int subsystems_init(void); +int subsystems_init_upto(int level); + +void subsystems_shutdown(void); +void subsystems_shutdown_downto(int level); + +#endif |