aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sistypes.h
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2002-02-28 20:56:59 +0000
committerFritz Elfert <felfert@to.com>2002-02-28 20:56:59 +0000
commiteecba3b5fcb47a01e6e13ee1940def989f6dd22d (patch)
tree970f3113de0d2b9b0544c1420117e0cf9633abcd /lib/sistypes.h
parent12241e0ff5ea242891fc3a8c177e8f55e897f2a3 (diff)
downloadplptools-eecba3b5fcb47a01e6e13ee1940def989f6dd22d.tar.gz
plptools-eecba3b5fcb47a01e6e13ee1940def989f6dd22d.tar.bz2
plptools-eecba3b5fcb47a01e6e13ee1940def989f6dd22d.zip
- Added SIS stuff by Daniel Brahneborg
Diffstat (limited to 'lib/sistypes.h')
-rw-r--r--lib/sistypes.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/sistypes.h b/lib/sistypes.h
new file mode 100644
index 0000000..834cf43
--- /dev/null
+++ b/lib/sistypes.h
@@ -0,0 +1,32 @@
+#ifndef _SISTYPES_H
+#define _SISTYPES_H
+
+typedef unsigned short uint16;
+typedef unsigned int uint32;
+typedef unsigned char uchar;
+
+extern uint16 read16(uchar* buf, int* ix);
+
+extern uint32 read32(uchar* buf, int* ix);
+
+extern void createCRCTable();
+
+extern uint16 updateCrc(uint16 crc, uchar value);
+
+extern int logLevel;
+
+/**
+ * Holder of a language entry, translating from language numbers to
+ * names.
+ */
+struct LangTableEntry
+{
+ uint16 m_no;
+ char m_code[3];
+ char* m_name;
+};
+
+extern LangTableEntry langTable[];
+
+#endif
+