diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-05 11:48:40 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-09-11 09:42:19 -0400 |
commit | c650ab8061202cdccb5361b4bf9c53836c46d03a (patch) | |
tree | 58599a48c18aef9f5950ce88359fd689b8c5e0a2 /src/lib | |
parent | 03e41830433268650bd9ba7184a5c2a0f80df8e9 (diff) | |
download | tor-c650ab8061202cdccb5361b4bf9c53836c46d03a.tar.gz tor-c650ab8061202cdccb5361b4bf9c53836c46d03a.zip |
Move VTFLAG_* declarations to conftypes.h
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/conf/conftypes.h | 19 | ||||
-rw-r--r-- | src/lib/confmgt/var_type_def_st.h | 19 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/lib/conf/conftypes.h b/src/lib/conf/conftypes.h index 4609564b34..6d1ce967a8 100644 --- a/src/lib/conf/conftypes.h +++ b/src/lib/conf/conftypes.h @@ -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 diff --git a/src/lib/confmgt/var_type_def_st.h b/src/lib/confmgt/var_type_def_st.h index 5eb97cff12..f1131ff116 100644 --- a/src/lib/confmgt/var_type_def_st.h +++ b/src/lib/confmgt/var_type_def_st.h @@ -134,25 +134,6 @@ struct var_type_fns_t { }; /** - * 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. **/ |