… | |
… | |
29 | |
29 | |
30 | /* These functions print error, warning, progress and debug information to |
30 | /* These functions print error, warning, progress and debug information to |
31 | * stderr */ |
31 | * stderr */ |
32 | extern void psiconv_fatal(psiconv_config config,int level, psiconv_u32 off, |
32 | extern void psiconv_fatal(psiconv_config config,int level, psiconv_u32 off, |
33 | const char *format,...); |
33 | const char *format,...); |
|
|
34 | extern void psiconv_error(psiconv_config config,int level, psiconv_u32 off, |
|
|
35 | const char *format,...); |
34 | extern void psiconv_warn(psiconv_config config,int level, psiconv_u32 off, |
36 | extern void psiconv_warn(psiconv_config config,int level, psiconv_u32 off, |
35 | const char *format,...); |
37 | const char *format,...); |
36 | extern void psiconv_progress(psiconv_config config,int level, psiconv_u32 off, |
38 | extern void psiconv_progress(psiconv_config config,int level, psiconv_u32 off, |
37 | const char *format,...); |
39 | const char *format,...); |
38 | extern void psiconv_debug(psiconv_config config,int level, psiconv_u32 off, |
40 | extern void psiconv_debug(psiconv_config config,int level, psiconv_u32 off, |
39 | const char *format,...); |
41 | const char *format,...); |
40 | |
42 | |
41 | #define PSICONV_VERB_DEBUG 4 |
43 | #define PSICONV_VERB_DEBUG 5 |
42 | #define PSICONV_VERB_PROGRESS 3 |
44 | #define PSICONV_VERB_PROGRESS 4 |
43 | #define PSICONV_VERB_WARN 2 |
45 | #define PSICONV_VERB_WARN 3 |
|
|
46 | #define PSICONV_VERB_ERROR 2 |
44 | #define PSICONV_VERB_FATAL 1 |
47 | #define PSICONV_VERB_FATAL 1 |
45 | |
48 | |
46 | #define PSICONV_E_OK 0 |
49 | #define PSICONV_E_OK 0 |
47 | #define PSICONV_E_OTHER 1 |
50 | #define PSICONV_E_OTHER 1 |
48 | #define PSICONV_E_NOMEM 2 |
51 | #define PSICONV_E_NOMEM 2 |