/[public]/psiconv/trunk/lib/psiconv/parse.h
ViewVC logotype

Diff of /psiconv/trunk/lib/psiconv/parse.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 18 Revision 61
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
27#ifdef __cplusplus
28extern "C" {
29#endif /* __cplusplus */
30
26typedef psiconv_list psiconv_buffer; /* of u8 */ 31typedef psiconv_list psiconv_buffer; /* of u8 */
27 32
28extern psiconv_file_type_t psiconv_file_type(psiconv_buffer buf, 33extern psiconv_file_type_t psiconv_file_type(psiconv_buffer buf,
29 int *length, 34 int *length,
30 psiconv_header_section *result); 35 psiconv_header_section *result);
31extern int psiconv_parse(const psiconv_buffer buf,psiconv_file *result); 36extern int psiconv_parse(const psiconv_buffer buf,psiconv_file *result);
32 37
33extern int psiconv_verbosity; 38extern int psiconv_verbosity;
34 39
40typedef void (*psiconv_error_handler_t) (int kind, psiconv_u32 off,
41 const char *message);
42
43extern psiconv_error_handler_t psiconv_error_handler;
44
45
35#define PSICONV_VERB_DEBUG 4 46#define PSICONV_VERB_DEBUG 4
36#define PSICONV_VERB_PROGRESS 3 47#define PSICONV_VERB_PROGRESS 3
37#define PSICONV_VERB_WARN 2 48#define PSICONV_VERB_WARN 2
38#define PSICONV_VERB_SILENT 1 49#define PSICONV_VERB_FATAL 1
50
51#ifdef __cplusplus
52}
53#endif /* __cplusplus */
39 54
40#endif /* def PSICONV_PARSE_H */ 55#endif /* def PSICONV_PARSE_H */

Legend:
Removed from v.18  
changed lines
  Added in v.61

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26