summaryrefslogtreecommitdiff
path: root/libunls/nls.h
blob: 1165036261bc24ab5a1c8a22640e8cc42ff5bbdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
 * This file has been modified for the cdrkit suite.
 *
 * The behaviour and appearence of the program code below can differ to a major
 * extent from the version distributed by the original author(s).
 *
 * For details, see Changelog file distributed with the cdrkit package. If you
 * received this file from another source then ask the distributing person for
 * a log of modifications.
 *
 */

/* @(#)nls.h	1.7 05/05/01 2000 J. Schilling */
/*
 *	Modifications to make the code portable Copyright (c) 2000 J. Schilling
 *	Thanks to Georgy Salnikov <sge@nmr.nioch.nsc.ru>
 *
 *	Code taken from the Linux kernel.
 */
/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2
 * as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; see the file COPYING.  If not, write to the Free Software
 * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef	_NLS_H
#define	_NLS_H

#include <unls.h>

#ifndef	NULL
#define	NULL ((void *)0)
#endif

#define	MOD_INC_USE_COUNT
#define	MOD_DEC_USE_COUNT

#define	CONFIG_NLS_CODEPAGE_437
#define	CONFIG_NLS_CODEPAGE_737
#define	CONFIG_NLS_CODEPAGE_775
#define	CONFIG_NLS_CODEPAGE_850
#define	CONFIG_NLS_CODEPAGE_852
#define	CONFIG_NLS_CODEPAGE_855
#define	CONFIG_NLS_CODEPAGE_857
#define	CONFIG_NLS_CODEPAGE_860
#define	CONFIG_NLS_CODEPAGE_861
#define	CONFIG_NLS_CODEPAGE_862
#define	CONFIG_NLS_CODEPAGE_863
#define	CONFIG_NLS_CODEPAGE_864
#define	CONFIG_NLS_CODEPAGE_865
#define	CONFIG_NLS_CODEPAGE_866
#define	CONFIG_NLS_CODEPAGE_869
#define	CONFIG_NLS_CODEPAGE_874
#define	CONFIG_NLS_CODEPAGE_1250
#define	CONFIG_NLS_CODEPAGE_1251
#define	CONFIG_NLS_ISO8859_1
#define	CONFIG_NLS_ISO8859_2
#define	CONFIG_NLS_ISO8859_3
#define	CONFIG_NLS_ISO8859_4
#define	CONFIG_NLS_ISO8859_5
#define	CONFIG_NLS_ISO8859_6
#define	CONFIG_NLS_ISO8859_7
#define	CONFIG_NLS_ISO8859_8
#define	CONFIG_NLS_ISO8859_9
#define	CONFIG_NLS_ISO8859_14
#define	CONFIG_NLS_ISO8859_15
#define	CONFIG_NLS_KOI8_R
#define	CONFIG_NLS_KOI8_U

#define	CONFIG_NLS_CODEPAGE_10000
#define	CONFIG_NLS_CODEPAGE_10006
#define	CONFIG_NLS_CODEPAGE_10007
#define	CONFIG_NLS_CODEPAGE_10029
#define	CONFIG_NLS_CODEPAGE_10079
#define	CONFIG_NLS_CODEPAGE_10081

extern int init_unls_iso8859_1(void);
extern int init_unls_iso8859_2(void);
extern int init_unls_iso8859_3(void);
extern int init_unls_iso8859_4(void);
extern int init_unls_iso8859_5(void);
extern int init_unls_iso8859_6(void);
extern int init_unls_iso8859_7(void);
extern int init_unls_iso8859_8(void);
extern int init_unls_iso8859_9(void);
extern int init_unls_iso8859_14(void);
extern int init_unls_iso8859_15(void);
extern int init_unls_cp437(void);
extern int init_unls_cp737(void);
extern int init_unls_cp775(void);
extern int init_unls_cp850(void);
extern int init_unls_cp852(void);
extern int init_unls_cp855(void);
extern int init_unls_cp857(void);
extern int init_unls_cp860(void);
extern int init_unls_cp861(void);
extern int init_unls_cp862(void);
extern int init_unls_cp863(void);
extern int init_unls_cp864(void);
extern int init_unls_cp865(void);
extern int init_unls_cp866(void);
extern int init_unls_cp869(void);
extern int init_unls_cp874(void);
extern int init_unls_cp1250(void);
extern int init_unls_cp1251(void);
extern int init_unls_koi8_r(void);
extern int init_unls_koi8_u(void);

extern int init_unls_cp10000(void);
extern int init_unls_cp10006(void);
extern int init_unls_cp10007(void);
extern int init_unls_cp10029(void);
extern int init_unls_cp10079(void);
extern int init_unls_cp10081(void);
extern int init_unls_file(char *name);

#ifdef USE_ICONV
extern int init_nls_iconv(char *name);
#endif

#endif	/* _NLS_H */