]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/loc/format.h
Move all database format definition into format.h
[people/ms/libloc.git] / src / loc / format.h
index deec7f10757bf9b84bfe007470726df2ffa7b675..130d0ff6b732416ad7cb9cda2bda356b0073209a 100644 (file)
 
 #include <stdint.h>
 
+#define LOC_DATABASE_MAGIC      "LOCDBXX"
+#define LOC_DATABASE_VERSION    0
+
+struct loc_database_magic {
+       char magic[7];
+
+       // Database version information
+       uint8_t version;
+};
+
 struct loc_database_header_v0 {
        // Vendor who created the database
        uint32_t vendor;