/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
#ifndef _HFS_ENCODINGS_H_
#define _HFS_ENCODINGS_H_
+#include <sys/appleapiopts.h>
+
+#ifdef __APPLE_API_UNSTABLE
+
+#define CTL_HFS_NAMES { \
+ { 0, 0 }, \
+ { "encodingbias", CTLTYPE_INT }, \
+}
+
/*
* HFS Filename Encoding Converters Interface
*
* encoding conversion routines.
*/
-typedef int (* hfs_to_unicode_func_t)(Str31 hfs_str, UniChar *uni_str,
+typedef int (* hfs_to_unicode_func_t)(const Str31 hfs_str, UniChar *uni_str,
UInt32 maxCharLen, UInt32 *usedCharLen);
typedef int (* unicode_to_hfs_func_t)(UniChar *uni_str, UInt32 unicodeChars,
Str31 hfs_str);
-int hfs_addconverter(int kmod_id, UInt32 encoding, hfs_to_unicode_func_t get_unicode,
- unicode_to_hfs_func_t get_hfsname);
+int hfs_addconverter(int kmod_id, UInt32 encoding,
+ hfs_to_unicode_func_t get_unicode,
+ unicode_to_hfs_func_t get_hfsname);
int hfs_remconverter(int kmod_id, UInt32 encoding);
+#endif /* __APPLE_API_UNSTABLE */
#endif /* ! _HFS_ENCODINGS_H_ */