Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib-storage: Add mailbox-list-iter-private.h with autocreate context …
…structs Needed for the following ACL change.
- Loading branch information
Showing
3 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef MAILBOX_LIST_ITER_PRIVATE_H | ||
#define MAILBOX_LIST_ITER_PRIVATE_H | ||
|
||
#include "mailbox-list-iter.h" | ||
|
||
struct autocreate_box { | ||
const char *name; | ||
const struct mailbox_settings *set; | ||
enum mailbox_info_flags flags; | ||
bool child_listed; | ||
}; | ||
|
||
ARRAY_DEFINE_TYPE(mailbox_settings, struct mailbox_settings *); | ||
struct mailbox_list_autocreate_iterate_context { | ||
unsigned int idx; | ||
struct mailbox_info new_info; | ||
ARRAY(struct autocreate_box) boxes; | ||
ARRAY_TYPE(mailbox_settings) box_sets; | ||
ARRAY_TYPE(mailbox_settings) all_ns_box_sets; | ||
bool listing_autoboxes:1; | ||
}; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters