summaryrefslogtreecommitdiff
path: root/sys/isofs/udf/osta.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/isofs/udf/osta.h')
-rw-r--r--sys/isofs/udf/osta.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/sys/isofs/udf/osta.h b/sys/isofs/udf/osta.h
new file mode 100644
index 00000000000..fdc9c46db30
--- /dev/null
+++ b/sys/isofs/udf/osta.h
@@ -0,0 +1,30 @@
+/* $OpenBSD: osta.h,v 1.1 2005/03/29 17:24:52 pedro Exp $ */
+
+/*
+ * Prototypes for the OSTA functions
+ *
+ * $FreeBSD: src/sys/fs/udf/osta.h,v 1.2 2003/11/05 06:55:23 scottl Exp $
+ */
+
+#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 unsigned short unicode_t;
+typedef unsigned char byte;
+
+int udf_UncompressUnicode(int, byte *, unicode_t *);
+int udf_UncompressUnicodeByte(int, byte *, byte *);
+int udf_CompressUnicode(int, int, unicode_t *, byte *);
+unsigned short udf_cksum(unsigned char *, int);
+unsigned short udf_unicode_cksum(unsigned short *, int);
+int UDFTransName(unicode_t *, unicode_t *, int);