/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
<HFS1> 12/12/96 msd first checked in
*/
+#ifndef _HFSUNICODEWRAPPERS_
+#define _HFSUNICODEWRAPPERS_
-#include "../../hfs_macos_defs.h"
-#include "../../hfs_format.h"
-
-// Encoding vs. Index
-//
-// For runtime table lookups and for the volume encoding bitmap we
-// need to map some encodings to keep them in a reasonable range.
-//
-
-enum {
- kIndexMacUkrainian = 48, // MacUkrainian encoding is 152
- kIndexMacFarsi = 49 // MacFarsi encoding is 140
-};
+#include <sys/appleapiopts.h>
-#define MapEncodingToIndex(e) \
- ( (e) < 48 ? (e) : ( (e) == kTextEncodingMacUkrainian ? kIndexMacUkrainian : ( (e) == kTextEncodingMacFarsi ? kIndexMacFarsi : kTextEncodingMacRoman) ) )
+#ifdef KERNEL
+#ifdef __APPLE_API_PRIVATE
-#define MapIndexToEncoding(i) \
- ( (i) == kIndexMacFarsi ? kTextEncodingMacFarsi : ( (i) == kIndexMacUkrainian ? kTextEncodingMacUkrainian : (i) ) )
-
-#define ValidMacEncoding(e) \
- ( ((e) < 39) || ((e) == kTextEncodingMacFarsi) || ((e) == kTextEncodingMacUkrainian) )
+#include "../../hfs_macos_defs.h"
+#include "../../hfs_format.h"
extern OSErr ConvertUnicodeToUTF8Mangled ( ByteCount srcLen,
extern HFSCatalogNodeID GetEmbeddedFileID( ConstStr31Param filename, UInt32 length, UInt32 *prefixLength );
+#endif /* __APPLE_API_PRIVATE */
+#endif /* KERNEL */
+#endif /* _HFSUNICODEWRAPPERS_ */