/*1* Prototypes for the OSTA functions2*/34/*-5**********************************************************************6* OSTA compliant Unicode compression, uncompression routines.7* Copyright 1995 Micro Design International, Inc.8* Written by Jason M. Rinn.9* Micro Design International gives permission for the free use of the10* following source code.11*/1213/*14* Various routines from the OSTA 2.01 specs. Copyrights are included with15* each code segment. Slight whitespace modifications have been made for16* formatting purposes. Typos/bugs have been fixed.17*/1819#ifndef UNIX20#define UNIX21#endif2223#ifndef MAXLEN24#define MAXLEN 25525#endif2627/***********************************************************************28* The following two typedef's are to remove compiler dependencies.29* byte needs to be unsigned 8-bit, and unicode_t needs to be30* unsigned 16-bit.31*/32typedef unsigned short unicode_t;33typedef unsigned char byte;3435int udf_UncompressUnicode(int, byte *, unicode_t *);36int udf_UncompressUnicodeByte(int, byte *, byte *);37int udf_CompressUnicode(int, int, unicode_t *, byte *);38unsigned short udf_cksum(unsigned char *, int);39unsigned short udf_unicode_cksum(unsigned short *, int);40int UDFTransName(unicode_t *, unicode_t *, int);414243