--- psiconv/trunk/lib/psiconv/configuration.h 2003/11/25 17:57:05 168 +++ psiconv/trunk/lib/psiconv/configuration.h 2003/12/13 23:26:37 180 @@ -27,15 +27,24 @@ extern "C" { #endif /* __cplusplus */ +typedef void *psiconv_error_handler_t (int kind, psiconv_u32 off, + const char *message); + typedef struct psiconv_config_s { int verbosity; int colordepth; - psiconv_bool_t greyscale; + int redbits; /* Only needed when color is used and no palet */ + int greenbits; /* Only needed when color is used and no palet */ + int bluebits; /* Only needed when color is used and no palet */ + psiconv_bool_t color; + psiconv_error_handler_t *error_handler; } *psiconv_config; -extern psiconv_config psiconv_config_read(const char *extra_config_file); +extern psiconv_config psiconv_config_default(void); +extern void psiconv_config_read(const char *extra_config_files, + psiconv_config *config); #ifdef __cplusplus }