ReactOS  0.4.15-dev-439-g292f67a
nls_gb2312.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/nls.h>
#include <linux/errno.h>
Include dependency graph for nls_gb2312.c:

Go to the source code of this file.

Functions

static int __init init_nls_gb2312 (void)
 
static void __exit exit_nls_gb2312 (void)
 

Variables

static struct nls_tablep_nls
 
static struct nls_table table
 

Function Documentation

◆ exit_nls_gb2312()

static void __exit exit_nls_gb2312 ( void  )
static

Definition at line 37 of file nls_gb2312.c.

38 {
41 }
int unregister_nls(struct nls_table *)
Definition: nls_base.c:185
void unload_nls(struct nls_table *)
Definition: nls_base.c:240
static struct nls_table * p_nls
Definition: nls_gb2312.c:11

Referenced by RfsdUnloadAllNls().

◆ init_nls_gb2312()

static int __init init_nls_gb2312 ( void  )
static

Definition at line 22 of file nls_gb2312.c.

23 {
24  p_nls = load_nls("cp936");
25 
26  if (p_nls) {
27  table.uni2char = p_nls->uni2char;
28  table.char2uni = p_nls->char2uni;
29  table.charset2upper = p_nls->charset2upper;
30  table.charset2lower = p_nls->charset2lower;
31  return register_nls(&table);
32  }
33 
34  return -EINVAL;
35 }
Definition: arc.h:39
int register_nls(struct nls_table *)
Definition: nls_base.c:162
static struct nls_table * p_nls
Definition: nls_gb2312.c:11
struct nls_table * load_nls(char *)
Definition: nls_base.c:218

Referenced by RfsdLoadAllNls().

Variable Documentation

◆ p_nls

struct nls_table* p_nls
static

Definition at line 11 of file nls_gb2312.c.

Referenced by exit_nls_gb2312(), and init_nls_gb2312().

◆ table

Initial value:
= {
"gb2312",
}
#define THIS_MODULE
Definition: module.h:267
smooth NULL
Definition: ftsmooth.c:416

Definition at line 13 of file nls_gb2312.c.