summaryrefslogtreecommitdiff
path: root/romdb.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-02 19:19:06 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-02 19:19:06 -0700
commit8f0979a2c4db824e91ead3290d8088d97b20e189 (patch)
treef8f5045c229e52b7ac05ca06909be8559b4616bc /romdb.h
parent983959f838575b6af3e64be442a63647312fcc61 (diff)
Initial work on ROM database
Diffstat (limited to 'romdb.h')
-rw-r--r--romdb.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/romdb.h b/romdb.h
new file mode 100644
index 0000000..e204f7d
--- /dev/null
+++ b/romdb.h
@@ -0,0 +1,20 @@
+#ifndef ROMDB_H_
+#define ROMDB_H_
+
+#define REGION_J 1
+#define REGION_U 2
+#define REGION_E 4
+
+#include "tern.h"
+#include "backend.h"
+
+typedef struct {
+ char *name;
+ memmap_chunk *map;
+ uint8_t regions;
+} rom_info;
+
+tern_node *load_rom_db();
+rom_info configure_rom(tern_node *rom_db, void *vrom);
+
+#endif //ROMDB_H_