| version 1.40, 2002/07/15 14:45:54 |
version 1.41, 2002/07/15 16:17:02 |
| Line 252 enum cfg_property_type { |
|
| Line 252 enum cfg_property_type { |
|
| /** Array of strings which forces to stop command line parsing. */ |
/** Array of strings which forces to stop command line parsing. */ |
| CFG_LINE_STOP_STRING = 0, |
CFG_LINE_STOP_STRING = 0, |
| |
|
| /** default: "-" */ |
/** Command line short option prefix (default: "-") */ |
| CFG_LINE_SHORT_OPTION_PREFIX = 1, |
CFG_LINE_SHORT_OPTION_PREFIX = 1, |
| |
|
| /** default: "--" */ |
/** Command line long option prefix (default: "--") */ |
| CFG_LINE_LONG_OPTION_PREFIX = 2, |
CFG_LINE_LONG_OPTION_PREFIX = 2, |
| |
|
| /** Command line option argument separator (default: "=") */ |
/** Command line option argument separator (default: "=") */ |
| Line 420 struct cfg_context { |
|
| Line 420 struct cfg_context { |
|
| /** Context type (command line or config file) */ |
/** Context type (command line or config file) */ |
| enum cfg_context_type type; |
enum cfg_context_type type; |
| |
|
| |
/** Possition range */ |
| |
long begin_pos; |
| |
long end_pos; |
| |
|
| /** Flags */ |
/** Flags */ |
| int flags; |
int flags; |
| |
|
| Line 436 struct cfg_context { |
|
| Line 440 struct cfg_context { |
|
| char **prop[CFG_N_PROPS]; |
char **prop[CFG_N_PROPS]; |
| |
|
| /** Currents */ |
/** Currents */ |
| int cur_idx; |
long cur_idx; |
| int cur_idx_tmp; |
long cur_idx_tmp; |
| int cur_opt_type; |
int cur_opt_type; |
| |
|
| /** Current option string */ |
/** Current option string */ |
| char *cur_opt; |
char *cur_opt; |
| Line 453 struct cfg_context { |
|
| Line 457 struct cfg_context { |
|
| */ |
*/ |
| /*@{*/ |
/*@{*/ |
| |
|
| int argc; |
/* int argc; */ |
| char **argv; |
char **argv; |
| |
|
| /*@}*/ |
/*@}*/ |
| Line 463 struct cfg_context { |
|
| Line 467 struct cfg_context { |
|
| */ |
*/ |
| /*@{*/ |
/*@{*/ |
| |
|
| long begin_pos; |
|
| long end_pos; |
|
| char *filename; |
char *filename; |
| FILE *fhandle; |
FILE *fhandle; |
| |
|
|
|
| * @return initialized command line context |
* @return initialized command line context |
| */ |
*/ |
| CFG_CONTEXT cfg_get_cmdline_context( |
CFG_CONTEXT cfg_get_cmdline_context( |
| int argc, |
long argc, |
| char **argv, |
char **argv, |
| struct cfg_option *options); |
struct cfg_option *options); |
| |
|
|
|
| */ |
*/ |
| void cfg_set_cmdline_context( |
void cfg_set_cmdline_context( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con, |
| int argc, |
long argc, |
| char **argv); |
char **argv); |
| |
|
| /** |
/** |