summaryrefslogtreecommitdiff
path: root/src/app/config/config.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-07-19 06:45:54 -0400
committerNick Mathewson <nickm@torproject.org>2019-07-24 15:21:56 -0400
commite8dc513bd012c9d7e1a5908c72056d5be52e760e (patch)
treee2ce3e075be6786118b6e8200741e14b595bdca0 /src/app/config/config.h
parentc32d485942e766eeea70cab468cc7c727a5be270 (diff)
downloadtor-e8dc513bd012c9d7e1a5908c72056d5be52e760e.tar.gz
tor-e8dc513bd012c9d7e1a5908c72056d5be52e760e.zip
Add a config_mgr_t type to wrap config_format_t
Remember that our goal in the present refactoring is to allow each subsystem to declare its own configuration structure and variables. To do this, each module will get its own config_format_t, and so we'll want a different structure that wraps several config_format_t objects. This is a "config_mgr_t".
Diffstat (limited to 'src/app/config/config.h')
-rw-r--r--src/app/config/config.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app/config/config.h b/src/app/config/config.h
index c6feb89fe7..44f09e5ee9 100644
--- a/src/app/config/config.h
+++ b/src/app/config/config.h
@@ -247,9 +247,8 @@ int options_any_client_port_set(const or_options_t *options);
#define CL_PORT_DFLT_GROUP_WRITABLE (1u<<7)
STATIC int options_act(const or_options_t *old_options);
-#ifdef TOR_UNIT_TESTS
-extern const struct config_format_t options_format;
-#endif
+struct config_mgr_t;
+STATIC const struct config_mgr_t *get_options_mgr(void);
STATIC port_cfg_t *port_cfg_new(size_t namelen);
#define port_cfg_free(port) \