xref: /freebsd/sys/fs/udf/osta.h (revision c5a1bf1b)
151a7b740SScott Long /*
251a7b740SScott Long  * Prototypes for the OSTA functions
351a7b740SScott Long  *
451a7b740SScott Long  * $FreeBSD$
551a7b740SScott Long  */
651a7b740SScott Long 
751a7b740SScott Long #ifndef UNIX
851a7b740SScott Long #define	UNIX
951a7b740SScott Long #endif
1051a7b740SScott Long 
1151a7b740SScott Long #ifndef MAXLEN
1251a7b740SScott Long #define	MAXLEN	255
1351a7b740SScott Long #endif
1451a7b740SScott Long 
1551a7b740SScott Long /***********************************************************************
1651a7b740SScott Long  * The following two typedef's are to remove compiler dependancies.
1751a7b740SScott Long  * byte needs to be unsigned 8-bit, and unicode_t needs to be
1851a7b740SScott Long  * unsigned 16-bit.
1951a7b740SScott Long  */
2051a7b740SScott Long typedef unsigned short unicode_t;
2151a7b740SScott Long typedef unsigned char byte;
2251a7b740SScott Long 
2351a7b740SScott Long int udf_UncompressUnicode(int, byte *, unicode_t *);
24c5a1bf1bSScott Long int udf_UncompressUnicodeByte(int, byte *, byte *);
2551a7b740SScott Long int udf_CompressUnicode(int, int, unicode_t *, byte *);
2651a7b740SScott Long unsigned short udf_cksum(unsigned char *, int);
2751a7b740SScott Long unsigned short udf_unicode_cksum(unsigned short *, int);
2851a7b740SScott Long int UDFTransName(unicode_t *, unicode_t *, int);
29