osta.h (b4583894aac2866e9660d6a8cb83e31967d6f857) osta.h (51a7b740a11434580f649a98c2b44b98d60e4292)
1/*
2 * Prototypes for the OSTA functions
3 *
4 * $FreeBSD$
5 */
6
1/*
2 * Prototypes for the OSTA functions
3 *
4 * $FreeBSD$
5 */
6
7/*-
8 **********************************************************************
9 * OSTA compliant Unicode compression, uncompression routines.
10 * Copyright 1995 Micro Design International, Inc.
11 * Written by Jason M. Rinn.
12 * Micro Design International gives permission for the free use of the
13 * following source code.
14 */
15
16/*
17 * Various routines from the OSTA 2.01 specs. Copyrights are included with
18 * each code segment. Slight whitespace modifications have been made for
19 * formatting purposes. Typos/bugs have been fixed.
20 */
21
22#ifndef UNIX
23#define UNIX
24#endif
25
26#ifndef MAXLEN
27#define MAXLEN 255
28#endif
29
30/***********************************************************************
31 * The following two typedef's are to remove compiler dependancies.
32 * byte needs to be unsigned 8-bit, and unicode_t needs to be
33 * unsigned 16-bit.
34 */
35typedef unsigned short unicode_t;
36typedef unsigned char byte;
37
38int udf_UncompressUnicode(int, byte *, unicode_t *);
7#ifndef UNIX
8#define UNIX
9#endif
10
11#ifndef MAXLEN
12#define MAXLEN 255
13#endif
14
15/***********************************************************************
16 * The following two typedef's are to remove compiler dependancies.
17 * byte needs to be unsigned 8-bit, and unicode_t needs to be
18 * unsigned 16-bit.
19 */
20typedef unsigned short unicode_t;
21typedef unsigned char byte;
22
23int udf_UncompressUnicode(int, byte *, unicode_t *);
39int udf_UncompressUnicodeByte(int, byte *, byte *);
40int udf_CompressUnicode(int, int, unicode_t *, byte *);
41unsigned short udf_cksum(unsigned char *, int);
42unsigned short udf_unicode_cksum(unsigned short *, int);
43int UDFTransName(unicode_t *, unicode_t *, int);
24int udf_CompressUnicode(int, int, unicode_t *, byte *);
25unsigned short udf_cksum(unsigned char *, int);
26unsigned short udf_unicode_cksum(unsigned short *, int);
27int UDFTransName(unicode_t *, unicode_t *, int);