Mercurial > dovecot > original-hg > dovecot-1.2
changeset 5644:648237c9ae76 HEAD
Added mail_index_transaction_get_view()
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 22 May 2007 20:08:53 +0300 |
parents | 453128e12b11 |
children | caf10b68dad7 |
files | src/lib-index/mail-index-transaction.c src/lib-index/mail-index.h |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-transaction.c Tue May 22 18:33:43 2007 +0300 +++ b/src/lib-index/mail-index-transaction.c Tue May 22 20:08:53 2007 +0300 @@ -88,6 +88,12 @@ i_free(t); } +struct mail_index_view * +mail_index_transction_get_view(struct mail_index_transaction *t) +{ + return t->view; +} + void mail_index_transaction_ref(struct mail_index_transaction *t) { t->refcount++;
--- a/src/lib-index/mail-index.h Tue May 22 18:33:43 2007 +0300 +++ b/src/lib-index/mail-index.h Tue May 22 20:08:53 2007 +0300 @@ -189,6 +189,9 @@ void mail_index_transaction_rollback(struct mail_index_transaction **t); /* Discard all changes in the transaction. */ void mail_index_transction_reset(struct mail_index_transaction *t); +/* Returns the view transaction was created for. */ +struct mail_index_view * +mail_index_transction_get_view(struct mail_index_transaction *t); /* Returns a view to transaction. Currently this differs from normal view only in that it contains newly appended messages in transaction. The view can