aboutsummaryrefslogtreecommitdiff
path: root/src/lib/subsys/subsys.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-01 11:51:33 -0400
committerNick Mathewson <nickm@torproject.org>2018-11-05 09:22:02 -0500
commit7bb76b24cf755799b7950ef078ac5ccf4d6e3a8a (patch)
treed36334e1f0ab425736864a40e6d0cd9ff3f39064 /src/lib/subsys/subsys.h
parent0ce1f2d46646fd73abee56888650288055f16a53 (diff)
downloadtor-7bb76b24cf755799b7950ef078ac5ccf4d6e3a8a.tar.gz
tor-7bb76b24cf755799b7950ef078ac5ccf4d6e3a8a.zip
Code to manage the list of subsystems.
Diffstat (limited to 'src/lib/subsys/subsys.h')
-rw-r--r--src/lib/subsys/subsys.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/subsys/subsys.h b/src/lib/subsys/subsys.h
index 7e4fe53636..012b218da7 100644
--- a/src/lib/subsys/subsys.h
+++ b/src/lib/subsys/subsys.h
@@ -43,6 +43,8 @@ typedef struct subsys_fns_t {
*
* This function MUST NOT rely on any runtime configuration information;
* it is only for global state or pre-configuration state.
+ *
+ * This function MUST NOT have any parts that can fail.
**/
int (*initialize)(void);
@@ -60,4 +62,7 @@ typedef struct subsys_fns_t {
} subsys_fns_t;
+#define MIN_SUBSYS_LEVEL -100
+#define MAX_SUBSYS_LEVEL 100
+
#endif