squat-trie.h revision 45114a7f9600d04c294f8f1051c0289c092febce
#ifndef SQUAT_TRIE_H
#define SQUAT_TRIE_H
#include "file-lock.h"
#include "seq-range-array.h"
enum squat_index_flags {
SQUAT_INDEX_FLAG_MMAP_DISABLE = 0x01,
SQUAT_INDEX_FLAG_NFS_FLUSH = 0x02,
};
enum squat_index_type {
SQUAT_INDEX_TYPE_HEADER = 0x01,
SQUAT_INDEX_TYPE_BODY = 0x02
};
struct squat_trie_build_context;
struct squat_trie *
enum file_lock_method lock_method,
struct squat_trie_build_context **ctx_r);
/* bodies must be added before headers */
/* if expunged_uids is non-NULL, they may be removed from the index if they
still exist. */
/* type specifies if we're looking at header, body or both */
enum squat_index_type type,
#endif