Merge the kernel part of UDF support from FreeBSD 5.
[dragonfly.git] / sys / vfs / udf / osta.h
1 /*
2  * Prototypes for the OSTA functions
3  *
4  * $FreeBSD: src/sys/fs/udf/osta.h,v 1.2 2003/11/05 06:55:23 scottl Exp $
5  * $DragonFly: src/sys/vfs/udf/osta.h,v 1.1 2004/03/12 22:38:15 joerg Exp $
6  */
7
8 #ifndef UNIX
9 #define UNIX
10 #endif
11
12 #ifndef MAXLEN
13 #define MAXLEN  255
14 #endif
15
16 /***********************************************************************
17  * The following two typedef's are to remove compiler dependancies.
18  * byte needs to be unsigned 8-bit, and unicode_t needs to be
19  * unsigned 16-bit.
20  */
21 typedef unsigned short unicode_t;
22 typedef unsigned char byte;
23
24 int udf_UncompressUnicode(int, byte *, unicode_t *);
25 int udf_UncompressUnicodeByte(int, byte *, byte *);
26 int udf_CompressUnicode(int, int, unicode_t *, byte *);
27 unsigned short udf_cksum(unsigned char *, int);
28 unsigned short udf_unicode_cksum(unsigned short *, int);
29 int UDFTransName(unicode_t *, unicode_t *, int);