#include <cfg+.h>
Data Fields | |
Shared properties | |
| enum cfg_context_type | type |
| int | flags |
| const struct cfg_option * | options |
| long | begin_pos |
| long | size |
| int * | used_opt_idx |
| enum cfg_error | error_code |
| char ** | prop [CFG_N_PROPS] |
| long | cur_idx |
| long | cur_idx_tmp |
| int | cur_opt_type |
| char * | cur_opt |
| char * | cur_arg |
Command line specific properties | |
| int | parsing_started:1 |
| char ** | argv |
Config file specific properties. | |
| char * | filename |
| FILE * | fhandle |
|
|
NULL terminated array of argument |
|
|
Starting parsing position |
|
|
Current option argument |
|
|
Currents |
|
|
Context type (command line or config file) |
|
|
Current option string |
|
|
Context type (command line or config file) |
|
|
Error code of last occured error. |
|
|
Pointer to FILE* structure of parsed file |
|
|
Filename (name of file) |
|
|
Flags |
|
|
Options table |
|
|
Flag to detect if parsing already started |
|
|
Special properties |
|
|
Number of elements (array arguments, bytes or lines) to parse (value of -1 means infinite) |
|
|
Context type (command line or config file) |
|
|
Array of used options indexes |
1.2.15