- Stephen Rothwell: APM updates
[davej-history.git] / include / linux / nls.h
blob68f20493499808d7771da3fe930dd9207858a1ff
1 #include <linux/init.h>
3 /* unicode character */
4 typedef __u16 wchar_t;
6 struct nls_table {
7 char *charset;
8 int (*uni2char) (wchar_t uni, unsigned char *out, int boundlen);
9 int (*char2uni) (const unsigned char *rawstring, int boundlen,
10 wchar_t *uni);
11 unsigned char *charset2lower;
12 unsigned char *charset2upper;
13 struct module *owner;
14 struct nls_table *next;
17 /* this value hold the maximum octet of charset */
18 #define NLS_MAX_CHARSET_SIZE 3
20 /* nls.c */
21 extern int register_nls(struct nls_table *);
22 extern int unregister_nls(struct nls_table *);
23 extern struct nls_table *load_nls(char *);
24 extern void unload_nls(struct nls_table *);
25 extern struct nls_table *load_nls_default(void);
27 extern int utf8_mbtowc(wchar_t *, const __u8 *, int);
28 extern int utf8_mbstowcs(wchar_t *, const __u8 *, int);
29 extern int utf8_wctomb(__u8 *, wchar_t, int);
30 extern int utf8_wcstombs(__u8 *, const wchar_t *, int);