--- psiconv/trunk/lib/psiconv/configuration.h 2003/12/13 23:26:37 180 +++ psiconv/trunk/lib/psiconv/configuration.h 2005/11/15 15:52:34 270 @@ -1,6 +1,6 @@ /* configuration.h - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999, 2000,2003 Frodo Looijaard + Copyright (c) 1999-2005 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -27,8 +27,8 @@ extern "C" { #endif /* __cplusplus */ -typedef void *psiconv_error_handler_t (int kind, psiconv_u32 off, - const char *message); +typedef void psiconv_error_handler_t (int kind, psiconv_u32 off, + const char *message); typedef struct psiconv_config_s { @@ -39,6 +39,10 @@ int bluebits; /* Only needed when color is used and no palet */ psiconv_bool_t color; psiconv_error_handler_t *error_handler; + psiconv_u8 unknown_epoc_char; + psiconv_ucs2 unknown_unicode_char; + psiconv_ucs2 unicode_table[0x100]; + psiconv_bool_t unicode; } *psiconv_config; extern psiconv_config psiconv_config_default(void); @@ -46,6 +50,8 @@ extern void psiconv_config_read(const char *extra_config_files, psiconv_config *config); +extern void psiconv_config_free(psiconv_config config); + #ifdef __cplusplus } #endif /* __cplusplus */