Lines Matching defs:view

47 	return t->view;
81 DLLIST_REMOVE(&t->view->transactions_list, t);
83 mail_index_view_transaction_unref(t->view);
86 mail_index_view_close(&t->view);
96 head_hdr = &t->view->index->map->hdr;
97 hdr = &t->view->map->hdr;
129 /* seq points to the transaction's primary view */
130 mail_index_lookup_uid(t->view, seq, &uid);
133 primary view if the message is already expunged */
135 mail_index_refresh(t->view->index);
136 t->latest_view = mail_index_view_open(t->view->index);
141 mail_index_lookup_keywords(t->view, seq, keywords);
154 if (mail_transaction_log_rotate(t->view->index->log, TRUE) < 0)
162 file = t->view->index->log->head;
165 if (mail_index_map(t->view->index, MAIL_INDEX_SYNC_HANDLER_HEAD) <= 0)
178 struct mail_transaction_log *log = t->view->index->log;
225 mail_index_view_add_hidden_transaction(t->view, log_seq1,
234 struct mail_index *index = t->view->index;
239 mail_index_view_get_messages_count(t->view));
283 struct mail_index *index = t->view->index;
286 if (mail_index_view_is_inconsistent(t->view)) {
291 if (t->view->index->index_deleted ||
292 (t->view->index->index_delete_requested &&
293 !t->view->index->syncing)) {
327 mail_index_transaction_begin(struct mail_index_view *view,
332 /* don't allow syncing view while there's ongoing transactions */
333 mail_index_view_transaction_ref(view);
334 mail_index_view_ref(view);
339 t->view = view;
342 if (view->syncing) {
343 /* transaction view cannot work if new records are being added
349 mail_index_view_get_messages_count(t->view) + 1;
354 DLLIST_PREPEND(&view->transactions_list, t);