#include "chapter-index.h"
#include "errors.h"
#include "logger.h"
#include "memory-alloc.h"
#include "permassert.h"
#include "hash-utils.h"
#include "indexer.h"
int uds_make_open_chapter_index(struct open_chapter_index **chapter_index,
const struct index_geometry *geometry, u64 volume_nonce)
{ … }
void uds_free_open_chapter_index(struct open_chapter_index *chapter_index)
{ … }
void uds_empty_open_chapter_index(struct open_chapter_index *chapter_index,
u64 virtual_chapter_number)
{ … }
static inline bool was_entry_found(const struct delta_index_entry *entry, u32 address)
{ … }
int uds_put_open_chapter_index_record(struct open_chapter_index *chapter_index,
const struct uds_record_name *name,
u32 page_number)
{ … }
int uds_pack_open_chapter_index_page(struct open_chapter_index *chapter_index,
u8 *memory, u32 first_list, bool last_page,
u32 *lists_packed)
{ … }
int uds_initialize_chapter_index_page(struct delta_index_page *index_page,
const struct index_geometry *geometry,
u8 *page_buffer, u64 volume_nonce)
{ … }
int uds_validate_chapter_index_page(const struct delta_index_page *index_page,
const struct index_geometry *geometry)
{ … }
int uds_search_chapter_index_page(struct delta_index_page *index_page,
const struct index_geometry *geometry,
const struct uds_record_name *name,
u16 *record_page_ptr)
{ … }