[dovecot-cvs] dovecot: Added mail_index_transaction_get_view()

dovecot at dovecot.org dovecot at dovecot.org
Tue May 22 20:09:01 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/648237c9ae76
changeset: 5644:648237c9ae76
user:      Timo Sirainen <tss at iki.fi>
date:      Tue May 22 20:08:53 2007 +0300
description:
Added mail_index_transaction_get_view()

diffstat:

2 files changed, 9 insertions(+)
src/lib-index/mail-index-transaction.c |    6 ++++++
src/lib-index/mail-index.h             |    3 +++

diffs (29 lines):

diff -r 453128e12b11 -r 648237c9ae76 src/lib-index/mail-index-transaction.c
--- 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
@@ -86,6 +86,12 @@ static void mail_index_transaction_free(
 	mail_index_view_transaction_unref(t->view);
 	mail_index_view_close(&t->view);
 	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)
diff -r 453128e12b11 -r 648237c9ae76 src/lib-index/mail-index.h
--- 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(str
 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


More information about the dovecot-cvs mailing list