Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sergi
Tor
Commits
c650ab80
Commit
c650ab80
authored
5 years ago
by
Nick Mathewson
Committed by
David Goulet
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Move VTFLAG_* declarations to conftypes.h
parent
03e41830
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/lib/conf/conftypes.h
+19
-0
19 additions, 0 deletions
src/lib/conf/conftypes.h
src/lib/confmgt/var_type_def_st.h
+0
-19
0 additions, 19 deletions
src/lib/confmgt/var_type_def_st.h
with
19 additions
and
19 deletions
src/lib/conf/conftypes.h
+
19
−
0
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
...
...
This diff is collapsed.
Click to expand it.
src/lib/confmgt/var_type_def_st.h
+
0
−
19
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment