.TH "cfg_t" 3 "21 Feb 2010" "Version 2.7" "confuse" \" -*- nroff -*- .ad l .nh .SH NAME cfg_t \- Data structure holding information about a 'section'. .PP .SH SYNOPSIS .br .PP \fC#include \fP .PP .SS "Data Fields" .in +1c .ti -1c .RI "cfg_flag_t \fBflags\fP" .br .RI "\fIAny flags passed to \fBcfg_init()\fP. \fP" .ti -1c .RI "char * \fBname\fP" .br .RI "\fIThe name of this section, the root section returned from \fBcfg_init()\fP is always named 'root'. \fP" .ti -1c .RI "\fBcfg_opt_t\fP * \fBopts\fP" .br .RI "\fIArray of options. \fP" .ti -1c .RI "char * \fBtitle\fP" .br .RI "\fIOptional title for this section, only set if CFGF_TITLE flag is set. \fP" .ti -1c .RI "char * \fBfilename\fP" .br .RI "\fIName of the file being parsed. \fP" .ti -1c .RI "int \fBline\fP" .br .RI "\fILine number in the config file. \fP" .ti -1c .RI "\fBcfg_errfunc_t\fP \fBerrfunc\fP" .br .RI "\fIThis function (if set with cfg_set_error_function) is called for any error message. \fP" .in -1c .SH "Detailed Description" .PP Data structure holding information about a 'section'. Sections can be nested. A section has a list of options (strings, numbers, booleans or other sections) grouped together. .PP \fBExamples: \fP .in +1c .PP \fBftpconf.c\fP, \fBreread.c\fP, and \fBsimple.c\fP. .SH "Field Documentation" .PP .SS "\fBcfg_errfunc_t\fP \fBcfg_t::errfunc\fP" .PP This function (if set with cfg_set_error_function) is called for any error message. .PP .PP Referenced by cfg_error(), cfg_init(), cfg_set_error_function(), and cfg_setopt(). .SH "Author" .PP Generated automatically by Doxygen for confuse from the source code.