#ifndef FTS_EXPUNGE_LOG
#define FTS_EXPUNGE_LOG
#include "seq-range-array.h"
#include "guid.h"
struct fts_expunge_log_read_record {
};
struct fts_expunge_log_append_ctx *
const guid_128_t mailbox_guid,
const guid_128_t mailbox_guid,
const struct fts_expunge_log_read_record *record);
/* In-memory flattened structures may have records removed from them,
file-backed ones may not. Non-existence of UIDs is not an error,
non-existence of mailbox GUID causes an error return of 0. */
const struct fts_expunge_log_read_record *record);
/* Do not commit non-backed structures, abort them after use. */
unsigned int *expunges_r);
struct fts_expunge_log_read_ctx *
const struct fts_expunge_log_read_record *
/* Returns 1 if all ok, 0 if there was corruption, -1 if I/O error.
If end() is called before reading all records, the log isn't unlinked. */
/* Read an entire log file, and flatten it into one hash of arrays.
The struct it returns cannot be written, as it has no backing store */
int fts_expunge_log_flatten(const char *path,
struct fts_expunge_log_append_ctx **flattened_r);
/* Modify in-place a flattened log. If non-existent mailbox GUIDs are
encountered, a warning will be logged. */
struct fts_expunge_log *subtract);
/* Write a modified flattened log as a new file. */
const char *path);
#endif