H A D | squat-trie.c | 14 #include "squat-trie-private.h" 34 struct squat_trie *trie; member in struct:squat_trie_build_context 52 struct squat_trie *trie; member in struct:squat_trie_iterate_context 58 static int squat_trie_map(struct squat_trie *trie, bool building); 60 void squat_trie_delete(struct squat_trie *trie) argument 62 i_unlink_if_exists(trie->path); 63 squat_uidlist_delete(trie->uidlist); 66 static void squat_trie_set_corrupted(struct squat_trie *trie) argument 68 trie->corrupted = TRUE; 69 i_error("Corrupted file %s", trie 73 squat_trie_normalize_map_build(struct squat_trie *trie) argument 107 node_free(struct squat_trie *trie, struct squat_node *node) argument 132 struct squat_trie *trie; local 155 squat_trie_close_fd(struct squat_trie *trie) argument 169 squat_trie_close(struct squat_trie *trie) argument 184 struct squat_trie *trie = *_trie; local 193 squat_trie_set_partial_len(struct squat_trie *trie, unsigned int len) argument 198 squat_trie_set_full_len(struct squat_trie *trie, unsigned int len) argument 203 squat_trie_header_init(struct squat_trie *trie) argument 218 squat_trie_open_fd(struct squat_trie *trie) argument 234 squat_trie_open(struct squat_trie *trie) argument 243 squat_trie_is_file_stale(struct squat_trie *trie) argument 271 squat_trie_refresh(struct squat_trie *trie) argument 281 squat_trie_lock(struct squat_trie *trie, int lock_type, struct file_lock **file_lock_r, struct dotlock **dotlock_r) argument 335 node_make_sequential(struct squat_trie *trie, struct squat_node *node, int level) argument 365 node_add_child(struct squat_trie *trie, struct squat_node *node, unsigned char chr, int level) argument 414 trie_file_cache_read(struct squat_trie *trie, size_t offset, size_t size) argument 428 node_read_children(struct squat_trie *trie, struct squat_node *node, int level) argument 729 struct squat_trie *trie = ctx->trie; local 826 struct squat_trie *trie = ctx->trie; local 852 struct squat_trie *trie = ctx->trie; local 887 squat_data_normalize(struct squat_trie *trie, const unsigned char *data, unsigned int size) argument 915 struct squat_trie *trie = ctx->trie; local 971 node_drop_unused_children(struct squat_trie *trie, struct squat_node *node) argument 1003 struct squat_trie *trie = ctx->trie; local 1050 struct squat_trie *trie = ctx->trie; local 1071 squat_trie_iterate_init(struct squat_trie *trie) argument 1411 squat_trie_check_header(struct squat_trie *trie) argument 1428 squat_trie_map_header(struct squat_trie *trie) argument 1479 squat_trie_map(struct squat_trie *trie, bool building) argument 1540 squat_trie_create_fd(struct squat_trie *trie, const char *path, int flags) argument 1563 squat_trie_build_init(struct squat_trie *trie, struct squat_trie_build_context **ctx_r) argument 1610 struct squat_trie *trie = ctx->trie; local 1758 squat_trie_get_last_uid(struct squat_trie *trie, uint32_t *last_uid_r) argument 1770 squat_trie_lookup_data(struct squat_trie *trie, const unsigned char *data, unsigned int size, ARRAY_TYPE(seq_range) *uids) argument 1888 struct squat_trie *trie; member in struct:squat_trie_lookup_context 1938 squat_trie_add_unknown(struct squat_trie *trie, ARRAY_TYPE(seq_range) *maybe_uids) argument 1959 squat_trie_lookup_real(struct squat_trie *trie, const char *str, enum squat_index_type type, ARRAY_TYPE(seq_range) *definite_uids, ARRAY_TYPE(seq_range) *maybe_uids) argument 2066 squat_trie_lookup(struct squat_trie *trie, const char *str, enum squat_index_type type, ARRAY_TYPE(seq_range) *definite_uids, ARRAY_TYPE(seq_range) *maybe_uids) argument 2080 squat_trie_get_uidlist(struct squat_trie *trie) argument 2085 squat_trie_mem_used(struct squat_trie *trie, unsigned int *count_r) argument [all...] |