aboutsummaryrefslogtreecommitdiff
path: root/src/lib/confmgt/structvar.h
AgeCommit message (Collapse)Author
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-09-11Merge branch 'tor-github/pr/1296'David Goulet
2019-09-11Replace low-level {var_type,struct_var}_is_*() with flag inspectionNick Mathewson
Since the flags are now stored with compatible numbering, we can just OR them together and see whether the flag we want is in the result. (Net code removal!)
2019-09-05Remove unused struct_var_* functions.Nick Mathewson
These turned out to be unnecessary, so let's not keep them around and let them start getting complicated. Closes ticket 31630.
2019-06-25Turn several properties of types or variables into flags.Nick Mathewson
"unsettable" is a property of types. LINELIST_V and OBSOLETE are unsettable, meaning that they cannot be set by name. "contained" is a property of types. I'm hoping to find a better name here. LINELIST_S is "contained" because it always appears within a LINELIST_V, and as such doesn't need to be dumped ore copied independently. "cumulative" is a property of types. Cumulative types can appear more than once in a torrc without causing a warning, because they add to each other rather than replacing each other. "obsolete" is a property of variables. "marking fragile" is now a command that struct members can accept. With these changes, confparse and config no longer ever need to mention CONFIG_TYPE_XYZ values by name.
2019-06-25Use structvar to find the types for config vars.Nick Mathewson
2019-06-25Add new "struct_var_" functions to manipulate struct fields.Nick Mathewson
These functions exist one level higher than typed_var_t. They describe a type, a name, and an offset within a structure.