xref: /netbsd-src/sys/fs/udf/udf_osta.h (revision 8b0f9554ff8762542c4defc4f70e1eb76fb508fa)
1 /* $NetBSD: udf_osta.h,v 1.3 2006/03/05 16:55:44 christos 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 
12 #include <sys/types.h>
13 
14 #ifndef UNIX
15 #define	UNIX
16 #endif
17 
18 #ifndef MAXLEN
19 #define	MAXLEN	255
20 #endif
21 
22 
23 /***********************************************************************
24  * The following two typedef's are to remove compiler dependancies.
25  * byte needs to be unsigned 8-bit, and unicode_t needs to be
26  * unsigned 16-bit.
27  */
28 typedef uint16_t unicode_t;
29 typedef uint8_t    byte;
30 
31 
32 int udf_UncompressUnicode(int, byte *, unicode_t *);
33 int udf_CompressUnicode(int, int, unicode_t *, byte *);
34 unsigned short udf_cksum(unsigned char *, int);
35 unsigned short udf_unicode_cksum(unsigned short *, int);
36 int UDFTransName(unicode_t *, unicode_t *, int);
37 int UnicodeLength(unicode_t *string);
38 
39 
40 #endif /* _FS_UDF_OSTA_H_ */
41