… | |
… | |
20 | /* Declarations only needed for the parser */ |
20 | /* Declarations only needed for the parser */ |
21 | |
21 | |
22 | #ifndef PSICONV_PARSE_H |
22 | #ifndef PSICONV_PARSE_H |
23 | #define PSICONV_PARSE_H |
23 | #define PSICONV_PARSE_H |
24 | |
24 | |
25 | #include "data.h" |
25 | #include <psiconv/data.h> |
26 | |
26 | |
27 | #ifdef __cplusplus |
27 | #ifdef __cplusplus |
28 | extern "C" { |
28 | extern "C" { |
29 | #endif /* __cplusplus */ |
29 | #endif /* __cplusplus */ |
30 | |
30 | |
… | |
… | |
35 | psiconv_header_section *result); |
35 | psiconv_header_section *result); |
36 | extern int psiconv_parse(const psiconv_buffer buf,psiconv_file *result); |
36 | extern int psiconv_parse(const psiconv_buffer buf,psiconv_file *result); |
37 | |
37 | |
38 | extern int psiconv_verbosity; |
38 | extern int psiconv_verbosity; |
39 | |
39 | |
|
|
40 | typedef void (*psiconv_error_handler_t) (int kind, psiconv_u32 off, |
|
|
41 | const char *message); |
|
|
42 | |
|
|
43 | extern psiconv_error_handler_t psiconv_error_handler; |
|
|
44 | |
|
|
45 | |
40 | #define PSICONV_VERB_DEBUG 4 |
46 | #define PSICONV_VERB_DEBUG 4 |
41 | #define PSICONV_VERB_PROGRESS 3 |
47 | #define PSICONV_VERB_PROGRESS 3 |
42 | #define PSICONV_VERB_WARN 2 |
48 | #define PSICONV_VERB_WARN 2 |
43 | #define PSICONV_VERB_SILENT 1 |
49 | #define PSICONV_VERB_FATAL 1 |
44 | |
50 | |
45 | #ifdef __cplusplus |
51 | #ifdef __cplusplus |
46 | } |
52 | } |
47 | #endif /* __cplusplus */ |
53 | #endif /* __cplusplus */ |
48 | |
54 | |