aboutsummaryrefslogtreecommitdiff
path: root/src/lib/conf/confdecl.h
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-05-19Doxygen: fix unbalanced groups.Nick Mathewson
Closes ticket 34255.
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-12-19Support a flag to indicate that a config var is disabledNick Mathewson
Like "obsolete" variables, these variables produce a warning when you try to set them, but the warning says that the relevant module doesn't have support. The confdecl macros now have a CONF_CONTEXT that you can define to make all the modules in a given table disabled.
2019-12-15Add torint.h include to confdecl.h.Nick Mathewson
This change allows other modules to include confdecl.h without having first to include integer types they might not even use.
2019-11-14Run "make autostyle"teor
2019-11-11Merge branch 'ticket32404'Nick Mathewson
2019-11-11doxygen: use <tt> and # to avoid interpreting # as a link.Nick Mathewson
2019-11-07Refactor "OBSOLETE" typeNick Mathewson
It no longer warns, and is now defined in terms of an "IGNORE" type. (The "IGNORE" type is the same as "OBSOLETE", except that it is not reported as obsolete. It should be useful for disabled modules.) Closes ticket 32404.
2019-11-07Define a low-level version of the confdecl table macrosNick Mathewson
This version uses the enum rather than the type definitions, to avoid layering violations and linking problems.
2019-11-07Add FOO_type_defn globals so that confdecl.h can refer to them.Nick Mathewson
2019-11-07Macros for declaring configuration structs and variable-tablesNick Mathewson
In our old design, we had to declare configuration structures (like or_options_t) and variable tables (like option_vars_) separately, and we used some magic to enforce their consistency (see conftesting.h). With this design, we write a single definition for the configuration object and its fields, and use C macros to expand it either into a structure, or a variable table. Since they are both made from the same source, they can't become inconsistent. The two designs can coexist happily, and we can migrate from one to the other at our convenience.