118 lines
3.9 KiB
C
118 lines
3.9 KiB
C
/****************************************************************************
|
|
|
|
|
| (C) Copyright 1985, 1991, 1993, 1996 Novell, Inc.
|
|
| All Rights Reserved.
|
|
|
|
|
| This program is free software; you can redistribute it and/or
|
|
| modify it under the terms of version 2 of the GNU General Public
|
|
| License 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; if not, contact Novell, Inc.
|
|
|
|
|
| To contact Novell about this file by physical or electronic mail,
|
|
| you may find current contact information at www.novell.com
|
|
|
|
|
|***************************************************************************
|
|
|
|
|
| NetWare Advance File Services (NSS) module
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
|
|
|
| $Author: blarsen $
|
|
| $Date: 2007-02-16 05:36:20 +0530 (Fri, 16 Feb 2007) $
|
|
|
|
|
| $RCSfile$
|
|
| $Revision: 1869 $
|
|
|
|
|
|---------------------------------------------------------------------------
|
|
| This module is used to:
|
|
| Define all of the UNICODE interfaces. This is actually an
|
|
| external INCLUDE file which is included temporarily for now.
|
|
+-------------------------------------------------------------------------*/
|
|
#ifndef _UNICODEINIT_H_
|
|
#define _UNICODEINIT_H_
|
|
|
|
#define N_PLAT_NLM
|
|
#if zNETWARE || (zLINUX && defined(__KERNEL__))
|
|
//#include <nunicode.h> /* main unicode include from SDK */
|
|
#endif
|
|
|
|
#ifndef _XUNICODE_H_
|
|
#include <xUnicode.h>
|
|
#endif
|
|
|
|
/*-------------------------------------------------------------------------
|
|
* Conversion table definitions
|
|
*-------------------------------------------------------------------------*/
|
|
extern BOOL NSSUnicodeConverterDefined[];
|
|
extern UNI_OverrideByte2UniFunc_t NSSUnicodeOverrideByte2Uni[];
|
|
extern UNI_OverrideUni2ByteFunc_t NSSUnicodeOverrideUni2Byte[];
|
|
|
|
/*---------------------------------------------------------------------------
|
|
* Macintosh Code Page definitions
|
|
*---------------------------------------------------------------------------*/
|
|
extern BYTE *MacintoshCodePageName;
|
|
|
|
/* Code page name defines for DOS/Windows code pages */
|
|
#define CP_DOS_LATIN 437
|
|
#define CP_DOS_GREEK_ 737
|
|
#define CP_DOS_BALTIC 775
|
|
#define CP_DOS_CANADA 850
|
|
#define CP_DOS_SLAVIC 852
|
|
#define CP_DOS_CYRILLIC 855
|
|
#define CP_DOS_TURKISH 857
|
|
#define CP_DOS_PORTUGUESE 860
|
|
#define CP_DOS_ICELANDIC 861
|
|
#define CP_DOS_HEBREW 862
|
|
#define CP_DOS_FRENCH_CAN 863
|
|
#define CP_DOS_ARABIC 864
|
|
#define CP_DOS_SCANDINAVIAN 865
|
|
#define CP_DOS_RUSSIAN 866
|
|
#define CP_DOS_THAI 874
|
|
#define CP_DOS_JAPANESE 932
|
|
#define CP_DOS_CHINESE_SIMPLIFIED 936
|
|
#define CP_DOS_KOREAN 949
|
|
#define CP_DOS_CHINESE_TRADITIONAL 950
|
|
#define CP_WIN_SLAVIC 1250
|
|
#define CP_WIN_CYRILLIC 1251
|
|
#define CP_WIN_LATIN 1252
|
|
#define CP_WIN_GREEK 1253
|
|
#define CP_WIN_TURKISH 1254
|
|
#define CP_WIN_HEBREW 1255
|
|
#define CP_WIN_ARABIC 1256
|
|
#define CP_WIN_BALTIC 1257
|
|
#define CP_VIETNAMESE 1258
|
|
|
|
/*---------------------------------------------------------------------------
|
|
* Function prototypes
|
|
*---------------------------------------------------------------------------*/
|
|
extern STATUS UnicodeErrorTranslate(
|
|
NINT unicodeError);
|
|
|
|
/*-------------------------------------------------------------------------
|
|
* Scan and parse routine prototypes for NSS
|
|
*-------------------------------------------------------------------------*/
|
|
extern BOOL Byte2UniDefaultOverride(
|
|
unicode_t *output,
|
|
BYTE *input);
|
|
|
|
extern BOOL Byte2UniDOSOverride(
|
|
unicode_t *output,
|
|
BYTE *input);
|
|
|
|
extern BOOL Byte2UniRawOverride(
|
|
unicode_t *output,
|
|
BYTE *input);
|
|
|
|
extern BOOL Uni2ByteOverride(
|
|
BYTE *output,
|
|
unicode_t input);
|
|
|
|
#endif
|