X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=db.h;h=e23d47885ecedb85039fca8a71206ec765d071ba;hb=63fd24efd774f1ed3f5dab82b934f35b7b039557;hp=df79904d94594753bf960538e0f006d82b614437;hpb=acce03bb32917e21f2d1d49c5a460d3cd2f72a11;p=plocate diff --git a/db.h b/db.h index df79904..e23d478 100644 --- a/db.h +++ b/db.h @@ -13,9 +13,17 @@ struct Header { 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 max_version; // Nominally 1 or 2, 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; + + // Only if max_version >= 2, and only relevant for updatedb. + uint64_t directory_data_length_bytes; + uint64_t directory_data_offset_bytes; + uint64_t next_zstd_dictionary_length_bytes; + uint64_t next_zstd_dictionary_offset_bytes; + uint64_t conf_block_length_bytes; + uint64_t conf_block_offset_bytes; }; struct Trigram {