~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib-storage/index/dbox-multi/mdbox-storage.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
struct mdbox_index_header {
18
18
        uint32_t map_uid_validity;
19
19
        guid_128_t mailbox_guid;
 
20
        uint8_t flags; /* enum dbox_index_header_flags */
 
21
        uint8_t unused[3];
20
22
};
21
23
 
22
24
struct mdbox_storage {
27
29
        const char *storage_dir, *alt_storage_dir;
28
30
        struct mdbox_map *map;
29
31
 
30
 
        ARRAY_DEFINE(open_files, struct mdbox_file *);
 
32
        ARRAY(struct mdbox_file *) open_files;
31
33
        struct timeout *to_close_unused_files;
32
34
 
33
35
        ARRAY_TYPE(uint32_t) move_to_alt_map_uids;
69
71
                      uint32_t seq, uint32_t *map_uid_r);
70
72
uint32_t dbox_get_uidvalidity_next(struct mailbox_list *list);
71
73
int mdbox_read_header(struct mdbox_mailbox *mbox,
72
 
                      struct mdbox_index_header *hdr);
 
74
                      struct mdbox_index_header *hdr, bool *need_resize_r);
73
75
void mdbox_update_header(struct mdbox_mailbox *mbox,
74
76
                         struct mail_index_transaction *trans,
75
 
                         const struct mailbox_update *update);
 
77
                         const struct mailbox_update *update) ATTR_NULL(3);
76
78
 
77
79
struct mail_save_context *
78
80
mdbox_save_alloc(struct mailbox_transaction_context *_t);