]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/hfs/hfs_encodings.h
xnu-792.24.17.tar.gz
[apple/xnu.git] / bsd / hfs / hfs_encodings.h
index 7d4e7bbc120aa77a60b4a1e904f4199215f4b4ff..6b3e1e3ce94bb8d5b8d0dfd1c1a1c3e074ef1a79 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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_ */