… | |
… | |
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 "data.h" |
|
|
26 | |
|
|
27 | #ifdef __cplusplus |
|
|
28 | extern "C" { |
|
|
29 | #endif /* __cplusplus */ |
|
|
30 | |
26 | typedef psiconv_list psiconv_buffer; /* of u8 */ |
31 | typedef psiconv_list psiconv_buffer; /* of u8 */ |
27 | |
32 | |
28 | extern psiconv_file_type_t psiconv_file_type(psiconv_buffer buf); |
33 | extern psiconv_file_type_t psiconv_file_type(psiconv_buffer buf, |
|
|
34 | int *length, |
|
|
35 | psiconv_header_section *result); |
29 | extern int psiconv_parse(const psiconv_buffer buf,psiconv_file *result); |
36 | extern int psiconv_parse(const psiconv_buffer buf,psiconv_file *result); |
30 | |
37 | |
31 | extern int psiconv_verbosity; |
38 | extern int psiconv_verbosity; |
32 | |
39 | |
33 | #define PSICONV_VERB_DEBUG 4 |
40 | #define PSICONV_VERB_DEBUG 4 |
34 | #define PSICONV_VERB_PROGRESS 3 |
41 | #define PSICONV_VERB_PROGRESS 3 |
35 | #define PSICONV_VERB_WARN 2 |
42 | #define PSICONV_VERB_WARN 2 |
36 | #define PSICONV_VERB_SILENT 1 |
43 | #define PSICONV_VERB_SILENT 1 |
37 | |
44 | |
|
|
45 | #ifdef __cplusplus |
|
|
46 | } |
|
|
47 | #endif /* __cplusplus */ |
|
|
48 | |
38 | #endif /* def PSICONV_PARSE_H */ |
49 | #endif /* def PSICONV_PARSE_H */ |