/[public]/psiconv/trunk/program/psiconv/psiconv.h
ViewVC logotype

Diff of /psiconv/trunk/program/psiconv/psiconv.h

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

Revision 185 Revision 196
1/* 1/*
2 psiconv.h - Part of psiconv, a PSION 5 file formats converter 2 psiconv.h - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 1999 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
21#define PSICONV_H 21#define PSICONV_H
22 22
23#include <psiconv/data.h> 23#include <psiconv/data.h>
24#include <psiconv/configuration.h> 24#include <psiconv/configuration.h>
25 25
26#define FORMAT_WORD 0x01
27#define FORMAT_TEXTED 0x02
28#define FORMAT_CLIPART_SINGLE 0x04
29#define FORMAT_CLIPART_MULTIPLE 0x08
30#define FORMAT_MBM_SINGLE 0x10
31#define FORMAT_MBM_MULTIPLE 0x20
32#define FORMAT_SKETCH 0x40
33
26typedef enum 34typedef enum
27{ 35{
28 ENCODING_UTF8, 36 ENCODING_UTF8,
29 ENCODING_UCS2, 37 ENCODING_UCS2,
30 ENCODING_PSION, 38 ENCODING_PSION,
31 ENCODING_ASCII 39 ENCODING_ASCII,
40 ENCODING_ASCII_HTML
32} encoding; 41} encoding;
33 42
34typedef int output_function(const psiconv_config config, 43typedef int output_function(const psiconv_config config,
35 psiconv_list list, const psiconv_file file, 44 psiconv_list list, const psiconv_file file,
36 const char *type, 45 const char *type,
37 const encoding encoding_type); 46 const encoding encoding_type);
38 47
39typedef struct fileformat_s { 48typedef struct fileformat_s {
40 const char *name; 49 const char *name;
41 const char *description; 50 const char *description;
51 int supported_format;
42 output_function *output; 52 output_function *output;
43} *fileformat; 53} *fileformat;
44 54
45psiconv_list fileformat_list; /* of struct psiconv_fileformat */ 55psiconv_list fileformat_list; /* of struct psiconv_fileformat */
46 56

Legend:
Removed from v.185  
changed lines
  Added in v.196

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