tor  master
Data Fields
config_format_t Struct Reference

#include <confparse.h>

Collaboration diagram for config_format_t:
Collaboration graph
[legend]

Data Fields

size_t size
 
uint32_t magic
 
off_t magic_offset
 
config_abbrev_tabbrevs
 
const config_deprecation_tdeprecations
 
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

◆ abbrevs

config_abbrev_t* abbrevs

List of abbreviations that we expand when parsing this format.

◆ extra

config_var_t* extra

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

◆ magic

uint32_t magic

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

◆ magic_offset

off_t magic_offset

Offset of the magic value within the struct.

◆ size

size_t size

Size of the struct that everything gets parsed into.

◆ validate_fn

validate_fn_t validate_fn

Function to validate config.

◆ vars

config_var_t* vars

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


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