Home | History | Annotate | Line # | Download | only in udf
udf_osta.h revision 1.2.2.1
      1  1.2.2.1   simonb /* $NetBSD: udf_osta.h,v 1.2.2.1 2006/04/22 11:39:58 simonb Exp $ */
      2      1.1  reinoud 
      3      1.1  reinoud /*
      4      1.1  reinoud  * Prototypes for the OSTA functions
      5      1.1  reinoud  */
      6      1.1  reinoud 
      7      1.1  reinoud 
      8      1.2  reinoud #ifndef _FS_UDF_OSTA_H_
      9      1.2  reinoud #define _FS_UDF_OSTA_H_
     10      1.1  reinoud 
     11      1.1  reinoud 
     12      1.1  reinoud #include <sys/types.h>
     13      1.1  reinoud 
     14      1.1  reinoud #ifndef UNIX
     15      1.1  reinoud #define	UNIX
     16      1.1  reinoud #endif
     17      1.1  reinoud 
     18      1.1  reinoud #ifndef MAXLEN
     19      1.1  reinoud #define	MAXLEN	255
     20      1.1  reinoud #endif
     21      1.1  reinoud 
     22      1.1  reinoud 
     23      1.1  reinoud /***********************************************************************
     24      1.1  reinoud  * The following two typedef's are to remove compiler dependancies.
     25      1.1  reinoud  * byte needs to be unsigned 8-bit, and unicode_t needs to be
     26      1.1  reinoud  * unsigned 16-bit.
     27      1.1  reinoud  */
     28      1.1  reinoud typedef uint16_t unicode_t;
     29      1.1  reinoud typedef uint8_t    byte;
     30      1.1  reinoud 
     31      1.1  reinoud 
     32      1.1  reinoud int udf_UncompressUnicode(int, byte *, unicode_t *);
     33      1.1  reinoud int udf_CompressUnicode(int, int, unicode_t *, byte *);
     34      1.1  reinoud unsigned short udf_cksum(unsigned char *, int);
     35      1.1  reinoud unsigned short udf_unicode_cksum(unsigned short *, int);
     36      1.1  reinoud int UDFTransName(unicode_t *, unicode_t *, int);
     37      1.1  reinoud int UnicodeLength(unicode_t *string);
     38      1.1  reinoud 
     39      1.1  reinoud 
     40      1.2  reinoud #endif /* _FS_UDF_OSTA_H_ */
     41