| verzia 1.33, 2002/04/21 10:08:40 |
verzia 1.34, 2002/04/24 22:03:54 |
| Riadok 329 struct cfg_context { |
|
| Riadok 329 struct cfg_context { |
|
| /** Options table */ |
/** Options table */ |
| const struct cfg_option *options; |
const struct cfg_option *options; |
| |
|
| |
/** Error code of last occured error. */ |
| |
enum cfg_error error_code; |
| |
|
| /** Quote prefix & postfix */ |
/** Quote prefix & postfix */ |
| char **quote_prefix; |
char **quote_prefix; |
| char **quote_postfix; |
char **quote_postfix; |
|
|
| /*@{*/ |
/*@{*/ |
| |
|
| /** |
/** |
| * Print error string |
* Print error string to stderr |
| |
* |
| |
* @param con initialized context |
| |
* @return void |
| |
*/ |
| |
void cfg_print_error(const CFG_CONTEXT con); |
| |
|
| |
/** |
| |
* Print error string to stream |
| * |
* |
| * @param con initialized context |
* @param con initialized context |
| * @param errorcode code of libcfg error |
|
| * @param fh stream opened for writting |
* @param fh stream opened for writting |
| * @return void |
* @return void |
| */ |
*/ |
| void cfg_print_error(const CFG_CONTEXT con, const int errorcode, FILE *fh); |
void cfg_fprint_error(const CFG_CONTEXT con, FILE *fh); |
| |
|
| /** |
/** |
| * Get error string; error string is dynamically allocated, it needs to be |
* Get error string; error string is dynamically allocated, it needs to be |
| * freed after use. |
* freed after use. |
| * |
* |
| * @param con initialized context |
* @param con initialized context |
| * @param errorcode code of libcfg error |
|
| * @return dynamically allocated error string |
* @return dynamically allocated error string |
| */ |
*/ |
| char *cfg_get_error_str(const CFG_CONTEXT con, const int errorcode); |
char *cfg_get_error_str(const CFG_CONTEXT con); |
| |
|
| /** |
/** |
| * Get static error string |
* Get static error string |