… | |
… | |
25 | |
25 | |
26 | #ifdef __cplusplus |
26 | #ifdef __cplusplus |
27 | extern "C" { |
27 | extern "C" { |
28 | #endif /* __cplusplus */ |
28 | #endif /* __cplusplus */ |
29 | |
29 | |
|
|
30 | typedef void *psiconv_error_handler_t (int kind, psiconv_u32 off, |
|
|
31 | const char *message); |
|
|
32 | |
30 | typedef struct psiconv_config_s |
33 | typedef struct psiconv_config_s |
31 | { |
34 | { |
32 | int verbosity; |
35 | int verbosity; |
33 | int colordepth; |
36 | int colordepth; |
34 | psiconv_bool_t greyscale; |
37 | psiconv_bool_t color; |
|
|
38 | psiconv_error_handler_t *error_handler; |
35 | } *psiconv_config; |
39 | } *psiconv_config; |
36 | |
40 | |
37 | extern psiconv_config psiconv_config_read(const char *extra_config_file); |
41 | extern psiconv_config psiconv_config_read(const char *extra_config_file); |
38 | |
42 | |
39 | |
43 | |