Mercurial > dovecot > core-2.2
view src/lib-storage/mailbox-list-notify.c @ 19552:0f22db71df7a
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/'
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 13 Jan 2016 12:24:03 +0200 |
parents | 3009a1a6f6d5 |
children | 2e2563132d5f |
line wrap: on
line source
/* Copyright (c) 2013-2016 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "mailbox-list-private.h" #include "mailbox-list-notify.h" int mailbox_list_notify_init(struct mailbox_list *list, enum mailbox_list_notify_event mask, struct mailbox_list_notify **notify_r) { if (list->v.notify_init == NULL) return -1; return list->v.notify_init(list, mask, notify_r); } void mailbox_list_notify_deinit(struct mailbox_list_notify **_notify) { struct mailbox_list_notify *notify = *_notify; *_notify = NULL; notify->list->v.notify_deinit(notify); } int mailbox_list_notify_next(struct mailbox_list_notify *notify, const struct mailbox_list_notify_rec **rec_r) { return notify->list->v.notify_next(notify, rec_r); } void mailbox_list_notify_wait(struct mailbox_list_notify *notify, void (*callback)(void *context), void *context) { notify->list->v.notify_wait(notify, callback, context); }