Data Fields
config_format_t Struct Reference

#include <confparse.h>

Data Fields

size_t size
uint32_t magic
off_t magic_offset
const config_deprecation_tdeprecations
validate_fn_t validate_fn
free_cfg_fn_t free_fn

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 164 of file confparse.h.

Field Documentation

◆ abbrevs

config_abbrev_t* config_format_t::abbrevs

List of abbreviations that we expand when parsing this format.

Definition at line 169 of file confparse.h.

Referenced by config_expand_abbrev().

◆ extra

config_var_t* config_format_t::extra

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

Definition at line 178 of file confparse.h.

Referenced by config_free_().

◆ free_fn

free_cfg_fn_t config_format_t::free_fn

Function to free the configuration.

Definition at line 175 of file confparse.h.

◆ magic

uint32_t config_format_t::magic

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

Definition at line 166 of file confparse.h.

◆ magic_offset

off_t config_format_t::magic_offset

Offset of the magic value within the struct.

Definition at line 168 of file confparse.h.

◆ size

size_t config_format_t::size

Size of the struct that everything gets parsed into.

Definition at line 165 of file confparse.h.

◆ validate_fn

validate_fn_t config_format_t::validate_fn

Function to validate config.

Definition at line 174 of file confparse.h.

Referenced by config_dump().

◆ vars

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 172 of file confparse.h.

Referenced by config_count_options(), config_dup(), config_find_option_mutable(), config_free_(), config_init(), and config_mark_lists_fragile().

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