File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / doc / man / man3 / cfg_t.3
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:49:17 2021 UTC (3 years, 4 months ago) by misho
Branches: confuse, MAIN
CVS tags: v3_3, HEAD
confuse 3.3

.TH "cfg_t" 3 "Thu Jun 25 2020" "Version 3.3" "confuse" \" -*- nroff -*-
.ad l
.nh
.SH NAME
cfg_t \- Data structure holding information about a 'section'\&.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <confuse\&.h>\fP
.SS "Data Fields"

.in +1c
.ti -1c
.RI "cfg_flag_t \fBflags\fP"
.br
.RI "Any flags passed to \fBcfg_init()\fP "
.ti -1c
.RI "char * \fBname\fP"
.br
.RI "The name of this section, the root section returned from \fBcfg_init()\fP is always named 'root'\&. "
.ti -1c
.RI "char * \fBcomment\fP"
.br
.RI "Optional annotation/comment\&. "
.ti -1c
.RI "\fBcfg_opt_t\fP * \fBopts\fP"
.br
.RI "Array of options\&. "
.ti -1c
.RI "char * \fBtitle\fP"
.br
.RI "Optional title for this section, only set if CFGF_TITLE flag is set\&. "
.ti -1c
.RI "char * \fBfilename\fP"
.br
.RI "Name of the file being parsed\&. "
.ti -1c
.RI "int \fBline\fP"
.br
.RI "Line number in the config file\&. "
.ti -1c
.RI "\fBcfg_errfunc_t\fP \fBerrfunc\fP"
.br
.RI "This function (if set with cfg_set_error_function) is called for any error message\&. "
.ti -1c
.RI "cfg_searchpath_t * \fBpath\fP"
.br
.RI "Linked list of directories to search\&. "
.ti -1c
.RI "\fBcfg_print_filter_func_t\fP \fBpff\fP"
.br
.RI "Printing filter function\&. "
.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
\fBftpconf\&.c\fP, \fBreread\&.c\fP, and \fBsimple\&.c\fP\&.
.SH "Field Documentation"
.PP 
.SS "\fBcfg_errfunc_t\fP cfg_t::errfunc"

.PP
This function (if set with cfg_set_error_function) is called for any error message\&. 

.SH "Author"
.PP 
Generated automatically by Doxygen for confuse from the source code\&.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>