… | |
… | |
15 | You should have received a copy of the GNU General Public License |
15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
18 | */ |
18 | */ |
19 | |
19 | |
20 | #ifndef PSICONV_PSICONV_H |
20 | #ifndef PSICONV_H |
21 | #define PSICONV_PSICONV_H |
21 | #define PSICONV_H |
22 | |
22 | |
23 | #include "data.h" |
23 | #include <psiconv/data.h> |
|
|
24 | #include <psiconv/configuration.h> |
24 | |
25 | |
25 | typedef int output_function(const char *filename, const psiconv_file, |
26 | typedef enum |
26 | const char *type); |
27 | { |
|
|
28 | ENCODING_UTF8, |
|
|
29 | ENCODING_UCS2, |
|
|
30 | ENCODING_PSION, |
|
|
31 | ENCODING_ASCII |
|
|
32 | } encoding; |
27 | |
33 | |
|
|
34 | typedef int output_function(const psiconv_config config, |
|
|
35 | psiconv_list list, const psiconv_file file, |
|
|
36 | const char *type, |
|
|
37 | const encoding encoding_type); |
|
|
38 | |
28 | typedef struct psiconv_fileformat { |
39 | typedef struct fileformat_s { |
29 | const char *name; |
40 | const char *name; |
30 | const char *description; |
41 | const char *description; |
31 | output_function *output; |
42 | output_function *output; |
32 | } *psiconv_fileformat; |
43 | } *fileformat; |
33 | |
44 | |
34 | psiconv_list fileformat_list; /* of struct psiconv_fileformat */ |
45 | psiconv_list fileformat_list; /* of struct psiconv_fileformat */ |
35 | |
46 | |
|
|
47 | |
36 | #endif /* PSICONV_GEN_H */ |
48 | #endif /* PSICONV_H */ |