summaryrefslogtreecommitdiff
path: root/src/app/config/confparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-05 11:48:25 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-05 11:32:32 -0400
commit16cf9424c1480aea2443f6995d1056e8f04ba5e3 (patch)
tree90f44c48f44dc820cd763ae8d8bbf1db2f3152aa /src/app/config/confparse.c
parent22e7d33735805799a31949a58f64ce634e47477f (diff)
downloadtor-16cf9424c1480aea2443f6995d1056e8f04ba5e3.tar.gz
tor-16cf9424c1480aea2443f6995d1056e8f04ba5e3.zip
config: Invert sense of _is_invisible, and rename to is_listable()
Diffstat (limited to 'src/app/config/confparse.c')
-rw-r--r--src/app/config/confparse.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c
index 633fc4f8ba..3d3f4e1bb1 100644
--- a/src/app/config/confparse.c
+++ b/src/app/config/confparse.c
@@ -534,11 +534,17 @@ config_var_is_contained(const config_var_t *var)
{
return struct_var_is_contained(&var->member);
}
+
+/**
+ * Return true iff variable <b>var</b> should appear on list of variables
+ * given to the controller or the CLI.
+ **/
bool
-config_var_is_invisible(const config_var_t *var)
+config_var_is_listable(const config_var_t *var)
{
- return (var->flags & CVFLAG_INVISIBLE) != 0;
+ return (var->flags & CVFLAG_INVISIBLE) == 0;
}
+
bool
config_var_is_dumpable(const config_var_t *var)
{