summaryrefslogtreecommitdiff
path: root/src/app/config/confparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-08-24 17:32:46 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-24 17:32:46 -0400
commiteb54fe8f97701a11e30009a94f11b7e3e5d69b4f (patch)
tree2a5c0527963533db432370c54e56eb2b06846e4c /src/app/config/confparse.c
parent65511a45adfeff258e71329b3ff98d5159f09f88 (diff)
downloadtor-eb54fe8f97701a11e30009a94f11b7e3e5d69b4f.tar.gz
tor-eb54fe8f97701a11e30009a94f11b7e3e5d69b4f.zip
Make config_var_is_invisible a function.
Diffstat (limited to 'src/app/config/confparse.c')
-rw-r--r--src/app/config/confparse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c
index 699fc0e3dd..7127e62cde 100644
--- a/src/app/config/confparse.c
+++ b/src/app/config/confparse.c
@@ -164,6 +164,11 @@ config_var_is_contained(const config_var_t *var)
{
return struct_var_is_contained(&var->member);
}
+bool
+config_var_is_invisible(const config_var_t *var)
+{
+ return (var->flags & CVFLAG_INVISIBLE) != 0;
+}
/*
* Functions to assign config options.