diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
commit | 0441d265f2bb9da249c7abf333f0f771fadb4ab5 (patch) | |
tree | 3f3789daa2f6db22da6e55e92bee0062a7d613fe /src/lib-index/mail-transaction-log-view-private.h | |
parent | Initial commit. (diff) | |
download | dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.tar.xz dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.zip |
Adding upstream version 1:2.3.21+dfsg1.upstream/1%2.3.21+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/lib-index/mail-transaction-log-view-private.h')
-rw-r--r-- | src/lib-index/mail-transaction-log-view-private.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/lib-index/mail-transaction-log-view-private.h b/src/lib-index/mail-transaction-log-view-private.h new file mode 100644 index 0000000..e739609 --- /dev/null +++ b/src/lib-index/mail-transaction-log-view-private.h @@ -0,0 +1,33 @@ +#ifndef MAIL_TRANSACTION_LOG_VIEW_PRIVATE_H +#define MAIL_TRANSACTION_LOG_VIEW_PRIVATE_H + +#include "mail-transaction-log-private.h" + +struct mail_transaction_log_view { + struct mail_transaction_log *log; + struct mail_transaction_log_view *next; + + uint32_t min_file_seq, max_file_seq; + uoff_t min_file_offset, max_file_offset; + + struct mail_transaction_header tmp_hdr; + + /* a list of log files we've referenced. we have to keep this list + explicitly because more files may be added into the linked list + at any time. */ + ARRAY(struct mail_transaction_log_file *) file_refs; + struct mail_transaction_log_file *cur, *head, *tail; + uoff_t cur_offset; + + uint64_t prev_modseq; + uint32_t prev_file_seq; + uoff_t prev_file_offset; + + struct mail_transaction_log_file *mark_file; + uoff_t mark_offset, mark_next_offset; + uint64_t mark_modseq; + + bool broken:1; +}; + +#endif |