--- psiconv/trunk/lib/psiconv/parse.h 1999/10/03 21:10:47 2 +++ psiconv/trunk/lib/psiconv/parse.h 2000/12/13 00:42:04 61 @@ -22,17 +22,34 @@ #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); +extern psiconv_file_type_t psiconv_file_type(psiconv_buffer buf, + int *length, + psiconv_header_section *result); extern int psiconv_parse(const psiconv_buffer buf,psiconv_file *result); 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 */