config_format_t Struct Reference


Data Fields

size_t size
uint32_t magic
off_t magic_offset
config_abbrev_tabbrevs
config_var_tvars
validate_fn_t validate_fn
config_var_textra

Detailed Description

Information on the keys, value types, key-to-struct-member mappings, variable descriptions, validation functions, and abbreviations for a configuration or storage format.

Field Documentation

Size of the struct that everything gets parsed into.

Referenced by config_alloc().

Required 'magic value' to make sure we have a struct of the right type.

Referenced by config_alloc().

Offset of the magic value within the struct.

Referenced by config_alloc().

List of abbreviations that we expand when parsing this format.

Referenced by expand_abbrev().

List of variables we recognize, their default values, and where we stick them in the structure.

Referenced by config_dump(), config_find_option(), config_free(), config_init(), and options_dup().

Function to validate config.

Referenced by config_dump().

If present, extra is a LINELIST variable for unrecognized lines. Otherwise, unrecognized lines are an error.

Referenced by config_assign_line(), config_dump(), and config_free().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:09 2010 for tor by  doxygen 1.5.6