etc/protocols - sync with NetBSD-8
[minix.git] / sys / fs / udf / udf_osta.h
blob4d166b74f8262ee479069500de4f519fbb907490
1 /* $NetBSD: udf_osta.h,v 1.4 2008/05/14 16:49:48 reinoud Exp $ */
3 /*
4 * Prototypes for the OSTA functions
5 */
8 #ifndef _FS_UDF_OSTA_H_
9 #define _FS_UDF_OSTA_H_
11 #include <sys/types.h>
13 #ifndef _KERNEL
14 #include <stdbool.h>
15 #endif
17 #ifndef UNIX
18 #define UNIX
19 #endif
21 #ifndef MAXLEN
22 #define MAXLEN 255
23 #endif
26 /***********************************************************************
27 * The following two typedef's are to remove compiler dependancies.
28 * byte needs to be unsigned 8-bit, and unicode_t needs to be
29 * unsigned 16-bit.
31 typedef uint16_t unicode_t;
32 typedef uint8_t byte;
35 int udf_UncompressUnicode(int, byte *, unicode_t *);
36 int udf_CompressUnicode(int, int, unicode_t *, byte *);
37 unsigned short udf_cksum(unsigned char *, int);
38 unsigned short udf_unicode_cksum(unsigned short *, int);
39 uint16_t udf_ea_cksum(uint8_t *data);
40 int UDFTransName(unicode_t *, unicode_t *, int);
41 int UnicodeLength(unicode_t *string);
44 #endif /* _FS_UDF_OSTA_H_ */