ReactOS  0.4.15-dev-439-g292f67a
nls.c File Reference
#include "rfsd.h"
Include dependency graph for nls.c:

Go to the source code of this file.

Functions

 DECLARE_INIT (init_nls_utf8)
 
 DECLARE_EXIT (exit_nls_utf8)
 
int RfsdLoadAllNls ()
 
VOID RfsdUnloadAllNls ()
 

Variables

struct nls_tabletables
 
spinlock_t nls_lock
 

Function Documentation

◆ DECLARE_EXIT()

DECLARE_EXIT ( exit_nls_utf8  )

◆ DECLARE_INIT()

DECLARE_INIT ( init_nls_utf8  )

◆ RfsdLoadAllNls()

int RfsdLoadAllNls ( )

Definition at line 123 of file nls.c.

124 {
125  int rc;
126 
127  tables = NULL;
129 
130  //
131  // Loading nls for utf8 ...
132  //
133 
135 
136 #ifdef FULL_CODEPAGES_SUPPORT
137 
138  //
139  // Loading nls for chinese gb2312 ...
140  //
141 
144 
145 
164 
165  //
166  // Loading nls for chinese big5
167  //
168 
171 
172  //
173  // Loading jp codepage
174  //
175 
179 
180  //
181  // Loading korean nls codepage
182  //
183 
186 
201 
204 
205 #endif //FULL_CODEPAGES_SUPPORT
206 
207 
208  KdPrint(("RfsdLoadAllNls: succeed to load all codepages ...\n"));
209 
210 errorout:
211 
212  return rc;
213 }
static int __init init_nls_cp861(void)
Definition: nls_cp861.c:376
static int __init init_nls_sjis(void)
Definition: nls_sjis.c:22
static int __init init_nls_cp866(void)
Definition: nls_cp866.c:294
static int __init init_nls_euc_jp(void)
Definition: nls_euc-jp.c:565
static int __init init_nls_cp1255(void)
Definition: nls_cp1255.c:371
static int __init init_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:63
static int __init init_nls_iso8859_8(void)
Definition: nls_iso8859-8.c:22
static int __init init_nls_cp737(void)
Definition: nls_cp737.c:339
static int __init init_nls_iso8859_5(void)
static int __init init_nls_cp869(void)
Definition: nls_cp869.c:304
static int __init init_nls_iso8859_1(void)
static int __init init_nls_cp860(void)
Definition: nls_cp860.c:353
static int __init init_nls_cp857(void)
Definition: nls_cp857.c:290
static int __init init_nls_cp863(void)
Definition: nls_cp863.c:370
smooth NULL
Definition: ftsmooth.c:416
static int __init init_nls_iso8859_4(void)
static int __init init_nls_cp862(void)
Definition: nls_cp862.c:410
static int __init init_nls_iso8859_9(void)
static int __init init_nls_cp874(void)
Definition: nls_cp874.c:262
static int __init init_nls_iso8859_14(void)
static int __init init_nls_cp864(void)
Definition: nls_cp864.c:396
static int __init init_nls_iso8859_7(void)
spinlock_t nls_lock
Definition: nls_base.c:23
#define LOAD_NLS
Definition: module.h:290
static int __init init_nls_cp936(void)
Definition: nls_cp936.c:11017
static int __init init_nls_cp850(void)
Definition: nls_cp850.c:304
static int __init init_nls_koi8_r(void)
Definition: nls_koi8-r.c:312
static int __init init_nls_cp865(void)
Definition: nls_cp865.c:376
static int __init init_nls_cp949(void)
Definition: nls_cp949.c:13934
static int __init init_nls_cp775(void)
Definition: nls_cp775.c:308
static int __init init_nls_utf8(void)
Definition: nls_utf8.c:46
static int __init init_nls_cp437(void)
Definition: nls_cp437.c:376
static int __init init_nls_tis_620(void)
Definition: nls_tis-620.c:22
static int __init init_nls_iso8859_2(void)
static int __init init_nls_cp855(void)
Definition: nls_cp855.c:288
static int __init init_nls_euc_kr(void)
Definition: nls_euc-kr.c:22
static int __init init_nls_big5(void)
Definition: nls_big5.c:22
static int __init init_nls_cp950(void)
Definition: nls_cp950.c:9473
#define spin_lock_init(sl)
Definition: module.h:303
static int __init init_nls_iso8859_13(void)
static int __init init_nls_cp852(void)
Definition: nls_cp852.c:326
struct nls_table * tables
Definition: nls_base.c:22
static int __init init_nls_cp932(void)
Definition: nls_cp932.c:7932
static int __init init_nls_iso8859_3(void)
#define KdPrint(x)
Definition: env_spec_w32.h:288
static int __init init_nls_cp1251(void)
Definition: nls_cp1251.c:290
static int __init init_nls_gb2312(void)
Definition: nls_gb2312.c:22
static int __init init_nls_iso8859_15(void)
static int __init init_nls_iso8859_6(void)
static int __init init_nls_koi8_u(void)
Definition: nls_koi8-u.c:319

Referenced by DriverEntry().

◆ RfsdUnloadAllNls()

VOID RfsdUnloadAllNls ( )

Definition at line 217 of file nls.c.

218 {
219 #ifdef FULL_CODEPAGES_SUPPORT
220 
262 
263  //
264  // Unloading nls of chinese ...
265  //
266 
269 
270 #endif //FULL_CODEPAGES_SUPPORT
271 
272  //
273  // Unloading nls of utf8 ...
274  //
275 
277 }
static void __exit exit_nls_cp860(void)
Definition: nls_cp860.c:358
static void __exit exit_nls_cp874(void)
Definition: nls_cp874.c:267
static void __exit exit_nls_koi8_u(void)
Definition: nls_koi8-u.c:324
static void __exit exit_nls_euc_kr(void)
Definition: nls_euc-kr.c:37
static void __exit exit_nls_big5(void)
Definition: nls_big5.c:37
static void __exit exit_nls_cp861(void)
Definition: nls_cp861.c:381
static void __exit exit_nls_sjis(void)
Definition: nls_sjis.c:37
static void __exit exit_nls_cp850(void)
Definition: nls_cp850.c:309
static void __exit exit_nls_iso8859_5(void)
static void __exit exit_nls_cp869(void)
Definition: nls_cp869.c:309
static void __exit exit_nls_iso8859_13(void)
static void __exit exit_nls_iso8859_4(void)
static void __exit exit_nls_cp862(void)
Definition: nls_cp862.c:415
static void __exit exit_nls_cp865(void)
Definition: nls_cp865.c:381
static void __exit exit_nls_cp863(void)
Definition: nls_cp863.c:375
static void __exit exit_nls_iso8859_6(void)
static void __exit exit_nls_iso8859_1(void)
static void __exit exit_nls_cp936(void)
Definition: nls_cp936.c:11022
static void __exit exit_nls_cp864(void)
Definition: nls_cp864.c:401
static void __exit exit_nls_koi8_ru(void)
Definition: nls_koi8-ru.c:76
static void __exit exit_nls_cp1251(void)
Definition: nls_cp1251.c:295
static void __exit exit_nls_cp1255(void)
Definition: nls_cp1255.c:376
static void __exit exit_nls_iso8859_7(void)
static void __exit exit_nls_cp949(void)
Definition: nls_cp949.c:13939
static void __exit exit_nls_cp737(void)
Definition: nls_cp737.c:344
static void __exit exit_nls_gb2312(void)
Definition: nls_gb2312.c:37
static void __exit exit_nls_iso8859_14(void)
static void __exit exit_nls_cp950(void)
Definition: nls_cp950.c:9478
static void __exit exit_nls_iso8859_9(void)
static void __exit exit_nls_cp932(void)
Definition: nls_cp932.c:7937
#define UNLOAD_NLS
Definition: module.h:291
static void __exit exit_nls_koi8_r(void)
Definition: nls_koi8-r.c:317
static void __exit exit_nls_iso8859_8(void)
Definition: nls_iso8859-8.c:37
static void __exit exit_nls_cp857(void)
Definition: nls_cp857.c:295
static void __exit exit_nls_cp775(void)
Definition: nls_cp775.c:313
static void __exit exit_nls_iso8859_15(void)
static void __exit exit_nls_cp852(void)
Definition: nls_cp852.c:331
static void __exit exit_nls_cp866(void)
Definition: nls_cp866.c:299
static void __exit exit_nls_cp437(void)
Definition: nls_cp437.c:381
static void __exit exit_nls_tis_620(void)
Definition: nls_tis-620.c:37
static void __exit exit_nls_iso8859_2(void)
static void __exit exit_nls_cp855(void)
Definition: nls_cp855.c:293
static void __exit exit_nls_utf8(void)
Definition: nls_utf8.c:55
static void __exit exit_nls_euc_jp(void)
Definition: nls_euc-jp.c:578
static void __exit exit_nls_iso8859_3(void)

Variable Documentation

◆ nls_lock

spinlock_t nls_lock

Definition at line 23 of file nls_base.c.

Referenced by find_nls(), register_nls(), and unregister_nls().

◆ tables