--- embedaddon/confuse/doc/html/structcfg__opt__t.html 2017/01/24 14:48:55 1.1.1.1 +++ embedaddon/confuse/doc/html/structcfg__opt__t.html 2021/03/17 00:49:17 1.1.1.2 @@ -1,99 +1,148 @@ - - + + - - confuse: cfg_opt_t Struct Reference - + + + +confuse: cfg_opt_t Struct Reference + + + + + + + +
+
+ + + + + + +
+
confuse +  3.3 +
+
+
+ + + + + + + + +
+
-
- - - - +
+ +
+
cfg_opt_t Struct Reference
+
-

cfg_opt_t Struct Reference

Data structure holding information about an option. -More... -

-#include <confuse.h> -

- - - - - - +

Data structure holding information about an option. + More...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +

#include <confuse.h>

+

Data Fields

-char * name
 The name of the option.
-cfg_type_t type
 Type of option.
-unsigned int nvalues
 Number of values parsed.
-cfg_value_t ** values
 Array of found values.
-cfg_flag_t flags
 Flags.
-cfg_opt_tsubopts
 Suboptions (only applies to sections).
-cfg_defvalue_t def
 Default value.
-cfg_func_t func
 Function callback for CFGT_FUNC options.
-void * simple_value
 Pointer to user-specified variable to store simple values (created with the CFG_SIMPLE_* initializers).
-cfg_callback_t parsecb
 Value parsing callback function.
-cfg_validate_callback_t validcb
 Value validating callback function.
-cfg_print_func_t pf
 print callback function
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Data Fields

+const char * name
 The name of the option.
 
+char * comment
 Optional comment/annotation.
 
+cfg_type_t type
 Type of option.
 
+unsigned int nvalues
 Number of values parsed.
 
+cfg_value_t ** values
 Array of found values.
 
+cfg_flag_t flags
 Flags.
 
+cfg_opt_tsubopts
 Suboptions (only applies to sections)
 
+cfg_defvalue_t def
 Default value.
 
+cfg_func_t func
 Function callback for CFGT_FUNC options.
 
+cfg_simple_t simple_value
 Pointer to user-specified variable to store simple values (created with the CFG_SIMPLE_* initializers)
 
+cfg_callback_t parsecb
 Value parsing callback function.
 
+cfg_validate_callback_t validcb
 Value validating parsing callback function.
 
+cfg_validate_callback2_t validcb2
 Value validating set callback function.
 
+cfg_print_func_t pf
 print callback function
 
-


Detailed Description

-Data structure holding information about an option. -

-The value(s) are stored as an array of fundamental values (strings, numbers, etc).

Examples:
- -

-ftpconf.c, reread.c, and simple.c.

- -
- +

Detailed Description

+

Data structure holding information about an option.

+

The value(s) are stored as an array of fundamental values (strings, numbers, etc).

+
Examples
ftpconf.c, reread.c, and simple.c.
+
+
+ + +