Mercurial > dovecot > core-2.2
diff src/lib-storage/index/dbox-single/sdbox-storage.c @ 10715:be5590207f20 HEAD
lib-storage: Changed mailbox_list.iter_is_mailbox() API.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 15 Feb 2010 02:03:42 +0200 |
parents | 292562f9b12c |
children | e8fc01d03aea |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-single/sdbox-storage.c Sun Feb 14 23:40:23 2010 +0200 +++ b/src/lib-storage/index/dbox-single/sdbox-storage.c Mon Feb 15 02:03:42 2010 +0200 @@ -8,20 +8,10 @@ #include "sdbox-sync.h" #include "sdbox-storage.h" -#define SDBOX_LIST_CONTEXT(obj) \ - MODULE_CONTEXT(obj, sdbox_mailbox_list_module) - -struct sdbox_mailbox_list { - union mailbox_list_module_context module_ctx; -}; - extern struct mail_storage dbox_storage; extern struct mailbox sdbox_mailbox; extern struct dbox_storage_vfuncs sdbox_dbox_storage_vfuncs; -static MODULE_CONTEXT_DEFINE_INIT(sdbox_mailbox_list_module, - &mailbox_list_module_register); - static struct mail_storage *sdbox_storage_alloc(void) { struct sdbox_storage *storage; @@ -203,18 +193,6 @@ return sdbox_write_index_header(box, update); } -static void sdbox_storage_add_list(struct mail_storage *storage ATTR_UNUSED, - struct mailbox_list *list) -{ - struct sdbox_mailbox_list *mlist; - - mlist = p_new(list->pool, struct sdbox_mailbox_list, 1); - mlist->module_ctx.super = list->v; - list->v.iter_is_mailbox = dbox_list_iter_is_mailbox; - - MODULE_CONTEXT_SET(list, sdbox_mailbox_list_module, mlist); -} - struct mail_storage dbox_storage = { .name = SDBOX_STORAGE_NAME, .class_flags = 0, @@ -224,7 +202,7 @@ sdbox_storage_alloc, NULL, NULL, - sdbox_storage_add_list, + NULL, dbox_storage_get_list_settings, NULL, sdbox_mailbox_alloc,