summaryrefslogtreecommitdiff
path: root/src/lib/conf
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-06-21 10:17:59 -0400
committerNick Mathewson <nickm@torproject.org>2019-06-25 12:51:25 -0400
commitf3330d2be3de287d4b15bd4d9b0e86fab3ffb9fd (patch)
tree5604cac45323391243f4134ef8fa6975b520c7ed /src/lib/conf
parenta7835202cf871f68854494df904058a6e644c0b0 (diff)
downloadtor-f3330d2be3de287d4b15bd4d9b0e86fab3ffb9fd.tar.gz
tor-f3330d2be3de287d4b15bd4d9b0e86fab3ffb9fd.zip
Make "invisibility" and "undumpability" properties of variables.
Previously, these were magical things that we detected by checking whether a variable's name was prefixed with two or three underscores.
Diffstat (limited to 'src/lib/conf')
-rw-r--r--src/lib/conf/conftypes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/conf/conftypes.h b/src/lib/conf/conftypes.h
index 6a44fb92ed..3b754e07be 100644
--- a/src/lib/conf/conftypes.h
+++ b/src/lib/conf/conftypes.h
@@ -110,6 +110,16 @@ typedef struct struct_magic_decl_t {
* fetch this option should produce a warning.
**/
#define CVFLAG_OBSOLETE (1u<<0)
+/**
+ * Flag to indicate that an option is undumpable. An undumpable option is
+ * never saved to disk, and is prefixed with __.
+ **/
+#define CVFLAG_NODUMP (1u<<1)
+/**
+ * Flag to indicate that an option is "invisible". An invisible option
+ * is always undumpable, and we don't tell the controller about it.
+ **/
+#define CVFLAG_INVISIBLE (1u<<2)
/** A variable allowed in the configuration file or on the command line. */
typedef struct config_var_t {