summaryrefslogtreecommitdiff
path: root/src/app/config/confparse.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-08-27 11:12:34 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-28 09:42:17 -0400
commit8db3859cc6f394927ca66bfc19c1227408fb7874 (patch)
treea39fc0e05591f1eef6a02820f36365a378c02de6 /src/app/config/confparse.h
parentd9fe9f5edef53c53e2e2337f8af0d88e42e47d4a (diff)
downloadtor-8db3859cc6f394927ca66bfc19c1227408fb7874.tar.gz
tor-8db3859cc6f394927ca66bfc19c1227408fb7874.zip
Simple tests for nested configuration formats
One test makes sure that the toplevel magic numbers are distinct. One test makes sure that we can parse a configuration object with two sub-objects.
Diffstat (limited to 'src/app/config/confparse.h')
-rw-r--r--src/app/config/confparse.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/config/confparse.h b/src/app/config/confparse.h
index 74ecb11a36..b7923bb82b 100644
--- a/src/app/config/confparse.h
+++ b/src/app/config/confparse.h
@@ -146,6 +146,10 @@ bool config_var_is_contained(const config_var_t *var);
#ifdef CONFPARSE_PRIVATE
STATIC void config_reset_line(const config_mgr_t *mgr, void *options,
const char *key, int use_defaults);
+STATIC void *config_mgr_get_obj_mutable(const config_mgr_t *mgr,
+ void *toplevel, int idx);
+STATIC const void *config_mgr_get_obj(const config_mgr_t *mgr,
+ const void *toplevel, int idx);
#endif
#endif /* !defined(TOR_CONFPARSE_H) */