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#include <sys/types.h> 12 13#ifndef _KERNEL 14#include <stdbool.h> 15#endif 16 17#ifndef UNIX 18#define UNIX 19#endif 20 21#ifndef MAXLEN 22#define MAXLEN 255 23#endif 24 25 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. 30 */ 31typedef uint16_t unicode_t; 32typedef uint8_t byte; 33 34 35int udf_UncompressUnicode(int, byte *, unicode_t *); 36int udf_CompressUnicode(int, int, unicode_t *, byte *); 37unsigned short udf_cksum(unsigned char *, int); 38unsigned short udf_unicode_cksum(unsigned short *, int); 39uint16_t udf_ea_cksum(uint8_t *data); 40int UDFTransName(unicode_t *, unicode_t *, int); 41int UnicodeLength(unicode_t *string); 42 43 44#endif /* _FS_UDF_OSTA_H_ */ 45