logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

cfg_opt_t - Data structure holding information about an option.

Author

       Generated automatically by Doxygen for confuse from the source code.

confuse                                            Version 3.3                                      cfg_opt_t(3)

Detailed Description

       Data structure holding information about an option.

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

       Examplesftpconf.c, reread.c, and simple.c.

Name

       cfg_opt_t - Data structure holding information about an option.

Synopsis

       #include <confuse.h>

   DataFields
       const char * name
           The name of the option.
       char * comment
           Optional comment/annotation.
       cfg_type_ttype
           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_t * subopts
           Suboptions (only applies to sections)
       cfg_defvalue_tdef
           Default value.
       cfg_func_tfunc
           Function callback for CFGT_FUNC options.
       cfg_simple_tsimple_value
           Pointer to user-specified variable to store simple values (created with the CFG_SIMPLE_*
           initializers)
       cfg_callback_tparsecb
           Value parsing callback function.
       cfg_validate_callback_tvalidcb
           Value validating parsing callback function.
       cfg_validate_callback2_tvalidcb2
           Value validating set callback function.
       cfg_print_func_tpf
           print callback function

See Also