Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Core
Tor
Commits
c650ab80
Commit
c650ab80
authored
Sep 05, 2019
by
Nick Mathewson
🐛
Committed by
David Goulet
Sep 11, 2019
Browse files
Move VTFLAG_* declarations to conftypes.h
parent
03e41830
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/conf/conftypes.h
View file @
c650ab80
...
...
@@ -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
...
...
src/lib/confmgt/var_type_def_st.h
View file @
c650ab80
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment