udf_osta.h revision 1.4 1 1.4 reinoud /* $NetBSD: udf_osta.h,v 1.4 2008/05/14 16:49:48 reinoud Exp $ */
2 1.1 reinoud
3 1.1 reinoud /*
4 1.1 reinoud * Prototypes for the OSTA functions
5 1.1 reinoud */
6 1.1 reinoud
7 1.1 reinoud
8 1.2 reinoud #ifndef _FS_UDF_OSTA_H_
9 1.2 reinoud #define _FS_UDF_OSTA_H_
10 1.1 reinoud
11 1.4 reinoud #include <sys/types.h>
12 1.1 reinoud
13 1.4 reinoud #ifndef _KERNEL
14 1.4 reinoud #include <stdbool.h>
15 1.4 reinoud #endif
16 1.1 reinoud
17 1.1 reinoud #ifndef UNIX
18 1.1 reinoud #define UNIX
19 1.1 reinoud #endif
20 1.1 reinoud
21 1.1 reinoud #ifndef MAXLEN
22 1.1 reinoud #define MAXLEN 255
23 1.1 reinoud #endif
24 1.1 reinoud
25 1.1 reinoud
26 1.1 reinoud /***********************************************************************
27 1.1 reinoud * The following two typedef's are to remove compiler dependancies.
28 1.1 reinoud * byte needs to be unsigned 8-bit, and unicode_t needs to be
29 1.1 reinoud * unsigned 16-bit.
30 1.1 reinoud */
31 1.1 reinoud typedef uint16_t unicode_t;
32 1.1 reinoud typedef uint8_t byte;
33 1.1 reinoud
34 1.1 reinoud
35 1.1 reinoud int udf_UncompressUnicode(int, byte *, unicode_t *);
36 1.1 reinoud int udf_CompressUnicode(int, int, unicode_t *, byte *);
37 1.1 reinoud unsigned short udf_cksum(unsigned char *, int);
38 1.1 reinoud unsigned short udf_unicode_cksum(unsigned short *, int);
39 1.4 reinoud uint16_t udf_ea_cksum(uint8_t *data);
40 1.1 reinoud int UDFTransName(unicode_t *, unicode_t *, int);
41 1.1 reinoud int UnicodeLength(unicode_t *string);
42 1.1 reinoud
43 1.1 reinoud
44 1.2 reinoud #endif /* _FS_UDF_OSTA_H_ */
45