2008-05-14 20:49:47 +04:00
|
|
|
/* $NetBSD: udf_osta.h,v 1.4 2008/05/14 16:49:48 reinoud Exp $ */
|
2006-02-02 18:19:15 +03:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Prototypes for the OSTA functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-02-02 19:14:26 +03:00
|
|
|
#ifndef _FS_UDF_OSTA_H_
|
|
|
|
#define _FS_UDF_OSTA_H_
|
2006-02-02 18:19:15 +03:00
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
2008-05-14 20:49:47 +04:00
|
|
|
#ifndef _KERNEL
|
|
|
|
#include <stdbool.h>
|
|
|
|
#endif
|
|
|
|
|
2006-02-02 18:19:15 +03:00
|
|
|
#ifndef UNIX
|
|
|
|
#define UNIX
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef MAXLEN
|
|
|
|
#define MAXLEN 255
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* The following two typedef's are to remove compiler dependancies.
|
|
|
|
* byte needs to be unsigned 8-bit, and unicode_t needs to be
|
|
|
|
* unsigned 16-bit.
|
|
|
|
*/
|
|
|
|
typedef uint16_t unicode_t;
|
|
|
|
typedef uint8_t byte;
|
|
|
|
|
|
|
|
|
|
|
|
int udf_UncompressUnicode(int, byte *, unicode_t *);
|
|
|
|
int udf_CompressUnicode(int, int, unicode_t *, byte *);
|
|
|
|
unsigned short udf_cksum(unsigned char *, int);
|
|
|
|
unsigned short udf_unicode_cksum(unsigned short *, int);
|
2008-05-14 20:49:47 +04:00
|
|
|
uint16_t udf_ea_cksum(uint8_t *data);
|
2006-02-02 18:19:15 +03:00
|
|
|
int UDFTransName(unicode_t *, unicode_t *, int);
|
|
|
|
int UnicodeLength(unicode_t *string);
|
|
|
|
|
|
|
|
|
2006-02-02 19:14:26 +03:00
|
|
|
#endif /* _FS_UDF_OSTA_H_ */
|