Diff for libcfg+/src/cfg+.h between version 1.12 and 1.13
| version 1.12, 2001/12/02 23:28:35 |
version 1.13, 2001/12/05 23:58:48 |
|
|
| CFG_ERROR_NOEQUAL = -10, |
CFG_ERROR_NOEQUAL = -10, |
| |
|
| /* An unknown option. */ |
/* An unknown option. */ |
| CFG_ERR_UNKNOWN = -15, |
CFG_ERR_UNKNOWN = -11, |
| CFG_ERROR_UNKNOWN = -15, |
CFG_ERROR_UNKNOWN = -11, |
| |
|
| |
/* File not found error. */ |
| |
CFG_ERR_FILE_NOT_FOUND = -12, |
| |
CFG_ERROR_FILE_NOT_FOUND = -12, |
| |
|
| |
/* Seek error (fseek() failure). */ |
| |
CFG_ERR_SEEK_ERROR = -13, |
| |
CFG_ERROR_SEEK_ERROR = -13, |
| |
|
| /* Internal error. */ |
/* Internal error. */ |
| CFG_ERR_INTERNAL = -20, |
CFG_ERR_INTERNAL = -20, |
|
|
| CFG_SKIP_FIRST = 0, |
CFG_SKIP_FIRST = 0, |
| CFG_PROCESS_FIRST = 4, |
CFG_PROCESS_FIRST = 4, |
| |
|
| /* |
/* TODO: |
| CFG_APPEND, |
CFG_APPEND, |
| CFG_OVERWRITE, |
CFG_OVERWRITE, |
| CFG_APPEND_MULTI_ONLY |
CFG_APPEND_MULTI_ONLY |
| Line 141 enum cfg_option_type { |
|
| Line 149 enum cfg_option_type { |
|
| |
|
| enum cfg_context_type { |
enum cfg_context_type { |
| |
|
| |
/* No context. */ |
| |
CFG_NO_CONTEXT = 0, |
| |
|
| /* Command line context type. */ |
/* Command line context type. */ |
| CFG_CMDLINE = 1, |
CFG_CMDLINE = 1, |
| CFG_LINE = 1, |
CFG_LINE = 1, |
| Line 226 struct cfg_context { |
|
| Line 237 struct cfg_context { |
|
| * Config file specific properties. |
* Config file specific properties. |
| */ |
*/ |
| |
|
| int begin_pos; |
long begin_pos; |
| int end_pos; |
long end_pos; |
| char *filename; |
char *filename; |
| |
|
| FILE *fhandle; |
FILE *fhandle; |
|
|
| CFG_CONTEXT cfg_get_context(struct cfg_option *options); |
CFG_CONTEXT cfg_get_context(struct cfg_option *options); |
| |
|
| CFG_CONTEXT cfg_get_cmdline_context( |
CFG_CONTEXT cfg_get_cmdline_context( |
| int argc, |
int argc, |
| char **argv, |
char **argv, |
| struct cfg_option *options); |
struct cfg_option *options); |
| |
|
| CFG_CONTEXT cfg_get_cfgfile_context( |
CFG_CONTEXT cfg_get_cfgfile_context( |
| int begin_pos, |
long begin_pos, |
| int end_pos, |
long end_pos, |
| char *filename, |
char *filename, |
| 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, |
int argc, |
| char **argv); |
char **argv); |
| |
|
| void cfg_set_cfgfile_context( |
void cfg_set_cfgfile_context( |
| const CFG_CONTEXT con, |
const CFG_CONTEXT con, |
| int begin_pos, |
long begin_pos, |
| int end_pos, |
long end_pos, |
| char *filename); |
char *filename); |
| |
|
| /* Context flags & special properties manipulation. */ |
/* Context flags & special properties manipulation. */ |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|