File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / confuse / doc / man / man3 / cfg_opt_t.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Jan 24 14:48:55 2017 UTC (7 years, 7 months ago) by misho
Branches: confuse, MAIN
CVS tags: v2_7, HEAD
confuse 2.7

.TH "cfg_opt_t" 3 "21 Feb 2010" "Version 2.7" "confuse" \" -*- nroff -*-
.ad l
.nh
.SH NAME
cfg_opt_t \- Data structure holding information about an option.  

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

.in +1c
.ti -1c
.RI "char * \fBname\fP"
.br
.RI "\fIThe name of the option. \fP"
.ti -1c
.RI "\fBcfg_type_t\fP \fBtype\fP"
.br
.RI "\fIType of option. \fP"
.ti -1c
.RI "unsigned int \fBnvalues\fP"
.br
.RI "\fINumber of values parsed. \fP"
.ti -1c
.RI "\fBcfg_value_t\fP ** \fBvalues\fP"
.br
.RI "\fIArray of found values. \fP"
.ti -1c
.RI "cfg_flag_t \fBflags\fP"
.br
.RI "\fIFlags. \fP"
.ti -1c
.RI "\fBcfg_opt_t\fP * \fBsubopts\fP"
.br
.RI "\fISuboptions (only applies to sections). \fP"
.ti -1c
.RI "\fBcfg_defvalue_t\fP \fBdef\fP"
.br
.RI "\fIDefault value. \fP"
.ti -1c
.RI "\fBcfg_func_t\fP \fBfunc\fP"
.br
.RI "\fIFunction callback for CFGT_FUNC options. \fP"
.ti -1c
.RI "void * \fBsimple_value\fP"
.br
.RI "\fIPointer to user-specified variable to store simple values (created with the CFG_SIMPLE_* initializers). \fP"
.ti -1c
.RI "\fBcfg_callback_t\fP \fBparsecb\fP"
.br
.RI "\fIValue parsing callback function. \fP"
.ti -1c
.RI "\fBcfg_validate_callback_t\fP \fBvalidcb\fP"
.br
.RI "\fIValue validating callback function. \fP"
.ti -1c
.RI "\fBcfg_print_func_t\fP \fBpf\fP"
.br
.RI "\fIprint callback function \fP"
.in -1c
.SH "Detailed Description"
.PP 
Data structure holding information about an option. 

The value(s) are stored as an array of fundamental values (strings, numbers, etc). 
.PP
\fBExamples: \fP
.in +1c
.PP
\fBftpconf.c\fP, \fBreread.c\fP, and \fBsimple.c\fP.

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

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