aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sistypes.h
diff options
context:
space:
mode:
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
+