summaryrefslogtreecommitdiff
path: root/tools/o2narc/Narc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/o2narc/Narc.h')
-rw-r--r--tools/o2narc/Narc.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/tools/o2narc/Narc.h b/tools/o2narc/Narc.h
new file mode 100644
index 00000000..f1b93b56
--- /dev/null
+++ b/tools/o2narc/Narc.h
@@ -0,0 +1,47 @@
+#ifndef GUARD_NARC_H
+#define GUARD_NARC_H
+
+struct NarcHeader
+{
+ uint32_t Id;
+ uint16_t ByteOrderMark;
+ uint16_t Version;
+ uint32_t FileSize;
+ uint16_t ChunkSize;
+ uint16_t ChunkCount;
+};
+
+struct FileAllocationTable
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+ uint16_t FileCount;
+ uint16_t Reserved;
+};
+
+struct FileAllocationTableEntry
+{
+ uint32_t Start;
+ uint32_t End;
+};
+
+struct FileNameTable
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+};
+
+struct FileNameTableEntry
+{
+ uint32_t Offset;
+ uint16_t FirstFileId;
+ uint16_t Utility;
+};
+
+struct FileImages
+{
+ uint32_t Id;
+ uint32_t ChunkSize;
+};
+
+#endif //GUARD_NARC_H