aboutsummaryrefslogtreecommitdiff
path: root/src/lib/conf
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-10-30 15:00:53 -0400
committerNick Mathewson <nickm@torproject.org>2019-10-30 15:00:53 -0400
commit2a2c7049b8b7e6c95f495df2cd9788a47b6e835c (patch)
tree90c6ef2b3e9df47d35b17a3c3ea89a6c395d6460 /src/lib/conf
parentf579541f13d5e196573a73065860337789a38504 (diff)
downloadtor-2a2c7049b8b7e6c95f495df2cd9788a47b6e835c.tar.gz
tor-2a2c7049b8b7e6c95f495df2cd9788a47b6e835c.zip
Add a CFLG_IMMUTABLE flag to mark a field as unchangeable.
Diffstat (limited to 'src/lib/conf')
-rw-r--r--src/lib/conf/conftypes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/conf/conftypes.h b/src/lib/conf/conftypes.h
index 69a5f79bf3..d4e2ea218a 100644
--- a/src/lib/conf/conftypes.h
+++ b/src/lib/conf/conftypes.h
@@ -178,6 +178,11 @@ typedef struct struct_magic_decl_t {
* however, setting them appends to their old value.
*/
#define CFLG_NOREPLACE (1u<<5)
+/**
+ * Flag to indicate that an option or type cannot be changed while Tor is
+ * running.
+ **/
+#define CFLG_IMMUTABLE (1u<<6)
/**
* A group of flags that should be set on all obsolete options and types.