--- psiconv/trunk/lib/psiconv/parse.h 1999/10/27 13:09:40 18 +++ psiconv/trunk/lib/psiconv/parse.h 2000/12/13 00:42:04 61 @@ -22,7 +22,12 @@ #ifndef PSICONV_PARSE_H #define PSICONV_PARSE_H -#include "data.h" +#include + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + typedef psiconv_list psiconv_buffer; /* of u8 */ extern psiconv_file_type_t psiconv_file_type(psiconv_buffer buf, @@ -32,9 +37,19 @@ extern int psiconv_verbosity; +typedef void (*psiconv_error_handler_t) (int kind, psiconv_u32 off, + const char *message); + +extern psiconv_error_handler_t psiconv_error_handler; + + #define PSICONV_VERB_DEBUG 4 #define PSICONV_VERB_PROGRESS 3 #define PSICONV_VERB_WARN 2 -#define PSICONV_VERB_SILENT 1 +#define PSICONV_VERB_FATAL 1 + +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif /* def PSICONV_PARSE_H */