#ifndef UDS_INDEX_H
#define UDS_INDEX_H
#include "index-layout.h"
#include "index-session.h"
#include "open-chapter.h"
#include "volume.h"
#include "volume-index.h"
index_callback_fn;
struct index_zone { … };
struct uds_index { … };
enum request_stage { … };
int __must_check uds_make_index(struct uds_configuration *config,
enum uds_open_index_type open_type,
struct index_load_context *load_context,
index_callback_fn callback, struct uds_index **new_index);
int __must_check uds_save_index(struct uds_index *index);
void uds_free_index(struct uds_index *index);
int __must_check uds_replace_index_storage(struct uds_index *index,
struct block_device *bdev);
void uds_get_index_stats(struct uds_index *index, struct uds_index_stats *counters);
void uds_enqueue_request(struct uds_request *request, enum request_stage stage);
void uds_wait_for_idle_index(struct uds_index *index);
#endif