unbound 0.1
config_parser_state Struct Reference

Used during options parsing. More...

#include <config_file.h>

Data Fields

char * filename
 name of file being parser
int line
 line number in the file, starts at 1
int errors
 number of errors encountered
struct config_file * cfg
 the result of parsing is stored here.
const char * chroot
 the current chroot dir (or NULL if none)
int started_toplevel
 if we are started in a toplevel, or not, after a force_toplevel

Detailed Description

Used during options parsing.

Field Documentation

◆ filename

char* config_parser_state::filename

name of file being parser

Referenced by config_read(), create_cfg_parser(), ub_c_error(), and ub_c_error_va_list().

◆ line

int config_parser_state::line

line number in the file, starts at 1

Referenced by create_cfg_parser(), ub_c_error(), and ub_c_error_va_list().

◆ errors

int config_parser_state::errors

number of errors encountered

Referenced by config_read(), create_cfg_parser(), ub_c_error(), and ub_c_error_va_list().

◆ cfg

struct config_file* config_parser_state::cfg

the result of parsing is stored here.

Referenced by config_auto_slab_values(), config_read(), and create_cfg_parser().

◆ chroot

const char* config_parser_state::chroot

the current chroot dir (or NULL if none)

Referenced by config_read(), and create_cfg_parser().

◆ started_toplevel

int config_parser_state::started_toplevel

if we are started in a toplevel, or not, after a force_toplevel

Referenced by create_cfg_parser(), and ub_c_error().


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