tor
master
|
#include <confparse.h>
Data Fields | |
size_t | size |
uint32_t | magic |
off_t | magic_offset |
config_abbrev_t * | abbrevs |
const config_deprecation_t * | deprecations |
config_var_t * | vars |
validate_fn_t | validate_fn |
config_var_t * | extra |
Information on the keys, value types, key-to-struct-member mappings, variable descriptions, validation functions, and abbreviations for a configuration or storage format.
config_abbrev_t* abbrevs |
List of abbreviations that we expand when parsing this format.
config_var_t* extra |
If present, extra is a LINELIST variable for unrecognized lines. Otherwise, unrecognized lines are an error.
uint32_t magic |
Required 'magic value' to make sure we have a struct of the right type.
off_t magic_offset |
Offset of the magic value within the struct.
size_t size |
Size of the struct that everything gets parsed into.
validate_fn_t validate_fn |
Function to validate config.
config_var_t* vars |
List of deprecated options List of variables we recognize, their default values, and where we stick them in the structure.