X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=db.h;h=df79904d94594753bf960538e0f006d82b614437;hb=15235ad9419e1db22838f6e228404baa3d78de14;hp=ca8b3ea74ae513a16a6bb9ed42a4eccdd9ea40a0;hpb=db96666312961f730f7ea9e4a966fc43d73dbc1c;p=plocate diff --git a/db.h b/db.h index ca8b3ea..df79904 100644 --- a/db.h +++ b/db.h @@ -5,12 +5,17 @@ struct Header { char magic[8]; // "\0plocate"; - uint32_t version; // 0. + uint32_t version; // 1. uint32_t hashtable_size; uint32_t extra_ht_slots; uint32_t num_docids; uint64_t hash_table_offset_bytes; uint64_t filename_index_offset_bytes; + + // Version 1 and up only. + uint32_t max_version; // Nominally 1, but can be increased if more features are added in a backward-compatible way. + uint32_t zstd_dictionary_length_bytes; + uint64_t zstd_dictionary_offset_bytes; }; struct Trigram {