Added CVS tags.
[gedcom-parse.git] / encoding.h
1 /*  This program is free software; you can redistribute it and/or modify  *
2  *  it under the terms of the GNU General Public License as published by  *
3  *  the Free Software Foundation; either version 2 of the License, or     *
4  *  (at your option) any later version.                                   *
5
6  (C) 2001 by The Genes Development Team
7  Original author: Peter Verthez (Peter.Verthez@advalvas.be)
8 */
9
10 /* $Id$ */
11 /* $Name$ */
12
13 /* Basic file encoding */
14 #ifndef __ENCODING_H
15 #define __ENCODING_H
16
17 typedef enum _ENC {
18   ONE_BYTE = 0,
19   TWO_BYTE_HILO = 1,
20   TWO_BYTE_LOHI = 2
21 } ENCODING;
22
23 int open_conv_to_internal(char* fromcode);
24 void close_conv_to_internal();
25 char* to_internal(char* str, size_t len);
26 void init_encodings();
27 void set_encoding_width(ENCODING enc);
28
29 #endif /* __ENCODING_H */