1 /* $NetBSD: udf_osta.h,v 1.4 2008/05/14 16:49:48 reinoud Exp $ */
2 
3 /*
4  * Prototypes for the OSTA functions
5  */
6 
7 
8 #ifndef _FS_UDF_OSTA_H_
9 #define _FS_UDF_OSTA_H_
10 
11 #include <sys/types.h>
12 
13 #ifndef _KERNEL
14 #include <stdbool.h>
15 #endif
16 
17 #ifndef UNIX
18 #define	UNIX
19 #endif
20 
21 #ifndef MAXLEN
22 #define	MAXLEN	255
23 #endif
24 
25 
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.
30  */
31 typedef uint16_t unicode_t;
32 typedef uint8_t    byte;
33 
34 
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);
42 
43 
44 #endif /* _FS_UDF_OSTA_H_ */
45