tor  0.4.2.1-alpha-dev
Data Fields
config_format_t Struct Reference

#include <confparse.h>

Data Fields

size_t size
 
struct_magic_decl_t magic
 
const config_abbrev_tabbrevs
 
const config_deprecation_tdeprecations
 
const config_var_tvars
 
validate_fn_t validate_fn
 
clear_cfg_fn_t clear_fn
 
const struct_member_textra
 
ptrdiff_t config_suite_offset
 

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.

Definition at line 94 of file confparse.h.

Field Documentation

◆ abbrevs

const config_abbrev_t* config_format_t::abbrevs

List of abbreviations that we expand when parsing this format.

Definition at line 97 of file confparse.h.

◆ clear_fn

clear_cfg_fn_t config_format_t::clear_fn

Function to clear the configuration.

Definition at line 104 of file confparse.h.

Referenced by config_free_().

◆ config_suite_offset

ptrdiff_t config_format_t::config_suite_offset

The position of a config_suite_t pointer within the toplevel object, or -1 if there is no such pointer.

Definition at line 110 of file confparse.h.

Referenced by config_mgr_get_suite_ptr().

◆ extra

const struct_member_t* config_format_t::extra

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

Definition at line 107 of file confparse.h.

Referenced by config_assign_line().

◆ magic

struct_magic_decl_t config_format_t::magic

Magic number info for this struct.

Definition at line 96 of file confparse.h.

Referenced by config_mgr_freeze().

◆ size

size_t config_format_t::size

Size of the struct that everything gets parsed into.

Definition at line 95 of file confparse.h.

◆ validate_fn

validate_fn_t config_format_t::validate_fn

Function to validate config.

Definition at line 103 of file confparse.h.

Referenced by config_dump().

◆ vars

const config_var_t* config_format_t::vars

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

Definition at line 100 of file confparse.h.


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