| version 1.4, 2001/10/10 19:23:13 |
version 1.5, 2001/10/11 13:27:34 |
| Line 164 struct cfg_context { |
|
| Line 164 struct cfg_context { |
|
| */ |
*/ |
| |
|
| int argc; |
int argc; |
| const char **argv; |
char **argv; |
| |
|
| /* Array of strings which forces to stop command line parsing. */ |
/* Array of strings which forces to stop command line parsing. */ |
| char **line_stop_str; |
char **line_stop_str; |
| Line 199 typedef struct cfg_context* CFG_CONTEXT; |
|
| Line 199 typedef struct cfg_context* CFG_CONTEXT; |
|
| /* Getting & modifying context functions. */ |
/* Getting & modifying context functions. */ |
| |
|
| CFG_CONTEXT cfg_get_context( |
CFG_CONTEXT cfg_get_context( |
| const struct cfg_option *options |
struct cfg_option *options |
| ); |
); |
| |
|
| CFG_CONTEXT cfg_get_cmdline_context( |
CFG_CONTEXT cfg_get_cmdline_context( |
| const int argc, |
int argc, |
| const char **argv, |
char **argv, |
| const struct cfg_option *options |
struct cfg_option *options |
| ); |
); |
| |
|
| CFG_CONTEXT cfg_get_cfgfile_context( |
CFG_CONTEXT cfg_get_cfgfile_context( |
| const int begin_pos, |
int begin_pos, |
| const int end_pos, |
int end_pos, |
| const char *filename, |
char *filename, |
| const 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, |
| const int argc, |
int argc, |
| const char **argv |
char **argv |
| ); |
); |
| |
|
| void cfg_set_cfgfile_context( |
void cfg_set_cfgfile_context( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con, |
| const int begin_pos, |
int begin_pos, |
| const int end_pos, |
int end_pos, |
| const char *filename |
char *filename |
| ); |
); |
| |
|
| /* Context flags & special properties manipulation. */ |
/* Context flags & special properties manipulation. */ |
| Line 236 void cfg_set_context_flags( |
|
| Line 236 void cfg_set_context_flags( |
|
| ); |
); |
| |
|
| void cfg_clear_cmdline_stop_str( |
void cfg_clear_cmdline_stop_str( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con |
| const char *str |
|
| ); |
); |
| |
|
| void cfg_add_cmdline_stop_str( |
void cfg_add_cmdline_stop_str( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con, |
| const char *str |
char *str |
| ); |
); |
| |
|
| void cfg_clear_cfgfile_stop_str( |
void cfg_clear_cfgfile_stop_str( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con |
| const char *str |
|
| ); |
); |
| |
|
| void cfg_add_cfgfile_stop_str( |
void cfg_add_cfgfile_stop_str( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con, |
| const char *str |
char *str |
| ); |
); |
| |
|
| void cfg_clear_cfgfile_comment_str( |
void cfg_clear_cfgfile_comment_str( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con |
| const char *str |
|
| ); |
); |
| |
|
| void cfg_add_cfgfile_comment_str( |
void cfg_add_cfgfile_comment_str( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con, |
| const char *str |
char *str |
| ); |
); |
| |
|
| /* Processing context options. */ |
/* Processing context options. */ |