aboutsummaryrefslogtreecommitdiff
path: root/src/app/main/subsysmgr.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-11-01 10:41:02 -0400
committerNick Mathewson <nickm@torproject.org>2019-11-07 07:28:43 -0500
commitb06e9d8ad58bfe11d2c1f6a921ba059658a578f2 (patch)
treef43d19ffc0b9c769531ac4634889d58d34388907 /src/app/main/subsysmgr.h
parent52c0ab4af3ec152c4b78669acf8877ca27d66097 (diff)
downloadtor-b06e9d8ad58bfe11d2c1f6a921ba059658a578f2.tar.gz
tor-b06e9d8ad58bfe11d2c1f6a921ba059658a578f2.zip
Add testing-only functions to get the subsystem config/state indices
Diffstat (limited to 'src/app/main/subsysmgr.h')
-rw-r--r--src/app/main/subsysmgr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/main/subsysmgr.h b/src/app/main/subsysmgr.h
index 7e5fe76362..c1138e1ff3 100644
--- a/src/app/main/subsysmgr.h
+++ b/src/app/main/subsysmgr.h
@@ -43,4 +43,9 @@ int subsystems_set_state(const struct config_mgr_t *mgr,
int subsystems_flush_state(const struct config_mgr_t *mgr,
struct or_state_t *state);
+#ifdef TOR_UNIT_TESTS
+int subsystems_get_options_idx(const subsys_fns_t *sys);
+int subsystems_get_state_idx(const subsys_fns_t *sys);
+#endif
+
#endif /* !defined(TOR_SUBSYSMGR_T) */