No empty .Rs/.Re
[netbsd-mini2440.git] / sys / fs / udf / udf_osta.h
blob1a916ca06ff8c70ae4e985fea7ce55ade0dd1d6a
1 /* $NetBSD: udf_osta.h,v 1.3 2006/03/05 16:55:44 christos 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_ */