Searched refs:ext_id (Results 1 - 25 of 45) sorted by relevance

12

/dovecot/src/lib-storage/index/mbox/
H A Dmbox-sync-list-index.c30 uint32_t ext_id; local
38 ext_id = mbox_list_get_ext_id(mbox, list_view);
39 mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
72 uint32_t ext_id; local
79 ext_id = mbox_list_get_ext_id(mbox, list_view);
80 mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
91 mail_index_update_ext(trans, seq, ext_id, &new_rec, NULL);
/dovecot/src/lib-index/
H A Dmail-index-transaction-export.c97 uint32_t ext_id, uint32_t reset_id,
108 i_assert(ext_id != (uint32_t)-1);
111 !mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {
116 rext = array_idx(&t->view->index->extensions, ext_id);
125 if (ext_id < count && resizes[ext_id].name_size != 0) {
127 intro = &resizes[ext_id];
130 intro->ext_id = idx;
133 intro->ext_id = (uint32_t)-1;
140 intro->ext_id
96 log_append_ext_intro(struct mail_index_export_context *ctx, uint32_t ext_id, uint32_t reset_id, unsigned int *hdr_size_r) argument
247 uint32_t ext_id, reset_id; local
332 unsigned int ext_id, count, reset_id_count, hdr_size; local
[all...]
H A Dmail-index-transaction-update.c728 uint32_t ext_id, uint16_t new_record_size)
735 array = array_idx_modifiable(&t->ext_rec_updates, ext_id);
753 void mail_index_ext_resize(struct mail_index_transaction *t, uint32_t ext_id, argument
764 rext = array_idx(&t->view->index->extensions, ext_id);
766 /* get ext_id from transaction's map if it's there */
767 if (!mail_index_map_get_ext_idx(t->view->map, ext_id, &intro.ext_id)) {
769 intro.ext_id = (uint32_t)-1;
775 ext = array_idx(&t->view->map->extensions, intro.ext_id);
789 if (ext_id < resizes_coun
727 mail_index_ext_rec_updates_resize(struct mail_index_transaction *t, uint32_t ext_id, uint16_t new_record_size) argument
824 mail_index_ext_resize_hdr(struct mail_index_transaction *t, uint32_t ext_id, uint32_t hdr_size) argument
830 mail_index_ext_reset(struct mail_index_transaction *t, uint32_t ext_id, uint32_t reset_id, bool clear_data) argument
849 mail_index_ext_reset_inc(struct mail_index_transaction *t, uint32_t ext_id, uint32_t prev_reset_id, bool clear_data) argument
924 mail_index_ext_reset_changes(struct mail_index_transaction *t, uint32_t ext_id) argument
954 mail_index_ext_using_reset_id(struct mail_index_transaction *t, uint32_t ext_id, uint32_t reset_id) argument
971 mail_index_ext_set_reset_id(struct mail_index_transaction *t, uint32_t ext_id, uint32_t reset_id) argument
979 mail_index_update_header_ext(struct mail_index_transaction *t, uint32_t ext_id, size_t offset, const void *data, size_t size) argument
1006 mail_index_update_ext(struct mail_index_transaction *t, uint32_t seq, uint32_t ext_id, const void *data, void *old_data_r) argument
1051 mail_index_atomic_inc_ext(struct mail_index_transaction *t, uint32_t seq, uint32_t ext_id, int diff) argument
[all...]
H A Dmail-index-transaction-view.c325 uint32_t seq, const void *data, uint32_t ext_id)
338 if (!mail_index_map_get_ext_idx(tview->lookup_map, ext_id, &ext_idx)) {
340 rext = array_idx(&tview->view.index->extensions, ext_id);
351 ext_id < array_count(&tview->t->ext_resizes)) {
352 intro = array_idx(&tview->t->ext_resizes, ext_id);
353 if (intro[ext_id].name_size != 0) {
382 tview_is_ext_reset(struct mail_index_view_transaction *tview, uint32_t ext_id) argument
391 return ext_id < count && resets[ext_id].new_reset_id != 0;
396 uint32_t ext_id, struc
324 tview_return_updated_ext(struct mail_index_view_transaction *tview, uint32_t seq, const void *data, uint32_t ext_id) argument
395 tview_lookup_ext_update(struct mail_index_view_transaction *tview, uint32_t seq, uint32_t ext_id, struct mail_index_map **map_r, const void **data_r) argument
437 tview_lookup_ext_full(struct mail_index_view *view, uint32_t seq, uint32_t ext_id, struct mail_index_map **map_r, const void **data_r, bool *expunged_r) argument
469 tview_get_header_ext(struct mail_index_view *view, struct mail_index_map *map, uint32_t ext_id, const void **data_r, size_t *data_size_r) argument
480 tview_ext_get_reset_id(struct mail_index_view *view, struct mail_index_map *map, uint32_t ext_id, uint32_t *reset_id_r) argument
[all...]
H A Dmail-index-transaction-finish.c32 uint32_t ext_id, uint32_t expected_reset_id)
38 if (!mail_index_map_get_ext_idx(t->view->index->map, ext_id, &idx)) {
47 mail_index_ext_set_reset_id(t, ext_id, 0);
54 array_idx_set(&t->ext_reset_ids, ext_id, &reset_id);
58 reset = array_idx_modifiable(&t->ext_resets, ext_id);
68 unsigned int ext_id, count; local
74 for (ext_id = 0; ext_id < count; ext_id++) {
75 if (expected_reset_ids[ext_id] !
31 ext_reset_update_atomic(struct mail_index_transaction *t, uint32_t ext_id, uint32_t expected_reset_id) argument
[all...]
H A Dmail-index-view.c350 const struct mail_index_record *rec, uint32_t ext_id)
355 if (!mail_index_map_get_ext_idx(map, ext_id, &idx))
365 uint32_t ext_id, struct mail_index_map **map_r,
371 *data_r = view_map_lookup_ext_full(*map_r, rec, ext_id);
375 struct mail_index_map *map, uint32_t ext_id,
386 if (!mail_index_map_get_ext_idx(map, ext_id, &idx)) {
400 uint32_t ext_id, uint32_t *reset_id_r)
405 if (!mail_index_map_get_ext_idx(map, ext_id, &idx))
533 uint32_t ext_id, const void **data_r,
538 mail_index_lookup_ext_full(view, seq, ext_id,
349 view_map_lookup_ext_full(struct mail_index_map *map, const struct mail_index_record *rec, uint32_t ext_id) argument
364 view_lookup_ext_full(struct mail_index_view *view, uint32_t seq, uint32_t ext_id, struct mail_index_map **map_r, const void **data_r, bool *expunged_r) argument
374 view_get_header_ext(struct mail_index_view *view, struct mail_index_map *map, uint32_t ext_id, const void **data_r, size_t *data_size_r) argument
398 view_ext_get_reset_id(struct mail_index_view *view ATTR_UNUSED, struct mail_index_map *map, uint32_t ext_id, uint32_t *reset_id_r) argument
532 mail_index_lookup_ext(struct mail_index_view *view, uint32_t seq, uint32_t ext_id, const void **data_r, bool *expunged_r) argument
541 mail_index_lookup_ext_full(struct mail_index_view *view, uint32_t seq, uint32_t ext_id, struct mail_index_map **map_r, const void **data_r, bool *expunged_r) argument
548 mail_index_get_header_ext(struct mail_index_view *view, uint32_t ext_id, const void **data_r, size_t *data_size_r) argument
554 mail_index_map_get_header_ext(struct mail_index_view *view, struct mail_index_map *map, uint32_t ext_id, const void **data_r, size_t *data_size_r) argument
561 mail_index_ext_get_reset_id(struct mail_index_view *view, struct mail_index_map *map, uint32_t ext_id, uint32_t *reset_id_r) argument
568 mail_index_ext_get_size(struct mail_index_map *map, uint32_t ext_id, uint32_t *hdr_size_r, uint16_t *record_size_r, uint16_t *record_align_r) argument
648 mail_index_view_get_ext(struct mail_index_view *view, uint32_t ext_id) argument
[all...]
H A Dmail-index-view-private.h32 uint32_t ext_id, struct mail_index_map **map_r,
35 struct mail_index_map *map, uint32_t ext_id,
39 uint32_t ext_id, uint32_t *reset_id_r);
H A Dmail-index.h330 void mail_index_set_ext_init_data(struct mail_index *index, uint32_t ext_id,
671 uint32_t ext_id,
680 void mail_index_ext_resize(struct mail_index_transaction *t, uint32_t ext_id,
685 uint32_t ext_id, uint32_t hdr_size);
691 void mail_index_ext_reset(struct mail_index_transaction *t, uint32_t ext_id,
697 void mail_index_ext_reset_inc(struct mail_index_transaction *t, uint32_t ext_id,
703 uint32_t ext_id, uint32_t reset_id);
707 uint32_t ext_id, uint32_t *reset_id_r);
710 void mail_index_get_header_ext(struct mail_index_view *view, uint32_t ext_id,
713 struct mail_index_map *map, uint32_t ext_id,
[all...]
H A Dmail-index-private.h58 uint32_t index_idx; /* index ext_id */
103 uint32_t index_idx; /* index ext_id */
243 uint32_t ext_id, bool call_always,
247 uint32_t ext_id);
248 void mail_index_register_sync_handler(struct mail_index *index, uint32_t ext_id,
252 uint32_t ext_id);
303 uint32_t ext_id, uint32_t *idx_r);
305 mail_index_view_get_ext(struct mail_index_view *view, uint32_t ext_id);
H A Dmail-index.c228 void mail_index_set_ext_init_data(struct mail_index *index, uint32_t ext_id, argument
234 index->ext_hdr_init_id == ext_id);
236 rext = array_idx(&index->extensions, ext_id);
239 index->ext_hdr_init_id = ext_id;
251 uint32_t ext_id; local
261 if (mail_index_ext_lookup(index, name, &ext_id))
262 return ext_id;
276 uint32_t ext_id,
283 rext = array_idx_modifiable(&index->extensions, ext_id);
308 uint32_t ext_id, boo
275 mail_index_ext_register_resize_defaults(struct mail_index *index, uint32_t ext_id, uint32_t default_hdr_size, uint16_t default_record_size, uint16_t default_record_align) argument
307 mail_index_register_expunge_handler(struct mail_index *index, uint32_t ext_id, bool call_always, mail_index_expunge_handler_t *cb, void *context) argument
322 mail_index_unregister_expunge_handler(struct mail_index *index, uint32_t ext_id) argument
333 mail_index_register_sync_handler(struct mail_index *index, uint32_t ext_id, mail_index_sync_handler_t *cb, enum mail_index_sync_handler_type type) argument
346 mail_index_unregister_sync_handler(struct mail_index *index, uint32_t ext_id) argument
[all...]
H A Dmail-index-map-hdr.c13 uint32_t ext_id, ext_map_idx, ext_offset; local
26 ext_id = (uint32_t)-1;
28 array_append(&map->ext_id_map, &ext_id, 1);
H A Dmail-index-sync-ext.c441 uint32_t ext_id; local
443 if (!mail_index_ext_lookup(ctx->view->index, name, &ext_id))
445 rext = array_idx(&ctx->view->index->extensions, ext_id);
484 if (u->ext_id != (uint32_t)-1 &&
486 u->ext_id >= array_count(&map->extensions))) {
487 if (!mail_index_sync_ext_unknown_complain(ctx, u->ext_id))
490 "Extension introduction for unknown id %u", u->ext_id);
494 if (u->ext_id == (uint32_t)-1 && u->name_size == 0) {
500 if (u->ext_id != (uint32_t)-1) {
502 ext_map_idx = u->ext_id;
[all...]
H A Dmail-index-transaction-private.h163 uint32_t ext_id, uint32_t reset_id);
H A Dtest-mail-index-transaction-finish.c15 uint32_t ext_id ATTR_UNUSED,
18 uint32_t ext_id ATTR_UNUSED,
/dovecot/src/lib-storage/index/dbox-common/
H A Ddbox-save.h38 uint32_t ext_id,
H A Ddbox-save.c201 uint32_t ext_id,
208 mail_index_get_header_ext(sync_view, ext_id, &data, &data_size);
213 mail_index_ext_resize_hdr(ctx->trans, ext_id, flags_offset+1);
223 mail_index_update_header_ext(ctx->trans, ext_id,
199 dbox_save_update_header_flags(struct dbox_save_context *ctx, struct mail_index_view *sync_view, uint32_t ext_id, unsigned int flags_offset) argument
H A Ddbox-storage.h82 bool dbox_header_have_flag(struct mailbox *box, uint32_t ext_id,
/dovecot/src/lib-storage/index/
H A Dindex-sync.c441 uint32_t ext_id; local
448 ext_id = index_list_get_ext_id(box, list_view);
449 mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
502 uint32_t ext_id; local
511 ext_id = index_list_get_ext_id(box, list_view);
512 mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
534 mail_index_update_ext(trans, seq, ext_id, &new_rec, NULL);
H A Dindex-sort-string.c36 uint32_t ext_id, last_seq, highest_reset_id, prev_seq; member in struct:sort_string_context
87 ctx->ext_id = mail_index_ext_register(program->t->box->index, name, 0,
167 ctx->ext_id, &map, &data, &expunged);
206 ctx->ext_id, &reset_id))
744 uint32_t ext_id = ctx->ext_id; local
755 mail_index_ext_reset_inc(itrans, ext_id,
784 mail_index_update_ext(itrans, nodes[i].seq, ext_id,
/dovecot/src/lib-storage/list/
H A Dmailbox-list-index-sync.c52 mail_index_update_ext(ctx->trans, seq, ctx->ilist->ext_id, &irec, NULL);
181 mail_index_get_header_ext(ctx->view, ilist->ext_id,
184 mail_index_ext_resize(ctx->trans, ilist->ext_id,
189 mail_index_update_header_ext(ctx->trans, ilist->ext_id,
364 mail_index_update_header_ext(sync_ctx->trans, sync_ctx->ilist->ext_id,
384 sync_ctx->ilist->ext_id,
392 sync_ctx->ilist->ext_id, &irec, NULL);
500 sync_ctx->ilist->ext_id,
507 sync_ctx->ilist->ext_id, &rec, NULL);
H A Dmailbox-list-index.h98 uint32_t ext_id, msgs_ext_id, hmodseq_ext_id, subs_hdr_ext_id; member in struct:mailbox_list_index
/dovecot/src/lib-storage/index/dbox-multi/
H A Dmdbox-storage.h60 uint32_t ext_id, hdr_ext_id, guid_ext_id; member in struct:mdbox_mailbox
H A Dmdbox-mail.c25 mail_index_lookup_ext(view, seq, mbox->ext_id, &data, NULL);
157 mbox->ext_id, &data, NULL);
H A Dmdbox-save.c58 mail_index_lookup_ext(t->view, seq, ctx->mbox->ext_id, &data, NULL);
262 mail_index_lookup_ext(view, mails[i].seq, mbox->ext_id,
272 mbox->ext_id, &rec, NULL);
472 ctx->mbox->ext_id, &rec, NULL);
/dovecot/src/lib-storage/index/maildir/
H A Dmaildir-sync-index.c710 uint32_t ext_id; local
722 ext_id = maildir_list_get_ext_id(mbox, list_view);
723 mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
768 uint32_t ext_id; local
779 ext_id = maildir_list_get_ext_id(mbox, list_view);
780 mail_index_lookup_ext(list_view, seq, ext_id, &data, &expunged);
796 mail_index_update_ext(trans, seq, ext_id, &new_rec, NULL);

Completed in 93 milliseconds

12