]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Move VTFLAG_* declarations to conftypes.h
authorNick Mathewson <nickm@torproject.org>
Thu, 5 Sep 2019 15:48:40 +0000 (11:48 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Wed, 11 Sep 2019 13:42:19 +0000 (09:42 -0400)
src/lib/conf/conftypes.h
src/lib/confmgt/var_type_def_st.h

index 4609564b3497915b7552260f7429f0c117b471df..6d1ce967a841d0b687daf6d702902b2915b9a257 100644 (file)
@@ -149,6 +149,25 @@ typedef struct struct_magic_decl_t {
  **/
 #define CVFLAG_INVISIBLE (1u<<2)
 
+/**
+ * Flag for var_type_def_t.
+ * Set iff a variable of this type can never be set directly by name.
+ **/
+#define VTFLAG_UNSETTABLE (1u<<0)
+/**
+ * Flag for var_type_def_t.
+ * Set iff a variable of this type is always contained in another
+ * variable, and as such doesn't need to be dumped or copied
+ * independently.
+ **/
+#define VTFLAG_CONTAINED (1u<<1)
+/**
+ * Flag for var_type_def_t.
+ * Set iff a variable of this type can be set more than once without
+ * destroying older values. Such variables should implement "mark_fragile".
+ */
+#define VTFLAG_CUMULATIVE (1u<<2)
+
 /** A variable allowed in the configuration file or on the command line. */
 typedef struct config_var_t {
   struct_member_t member; /** A struct member corresponding to this
index 5eb97cff122415cc90ed2548f2636caaa3ef0319..f1131ff1169c8da9a87dc7a28ca14601344cccc1 100644 (file)
@@ -133,25 +133,6 @@ struct var_type_fns_t {
   void (*mark_fragile)(void *value, const void *params);
 };
 
-/**
- * Flag for var_type_def_t.
- * Set iff a variable of this type can never be set directly by name.
- **/
-#define VTFLAG_UNSETTABLE (1u<<0)
-/**
- * Flag for var_type_def_t.
- * Set iff a variable of this type is always contained in another
- * variable, and as such doesn't need to be dumped or copied
- * independently.
- **/
-#define VTFLAG_CONTAINED (1u<<1)
-/**
- * Flag for var_type_def_t.
- * Set iff a variable of this type can be set more than once without
- * destroying older values. Such variables should implement "mark_fragile".
- */
-#define VTFLAG_CUMULATIVE (1u<<2)
-
 /**
  * A structure describing a type that can be manipulated with the typedvar_*
  * functions.