56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen#ifndef NOTIFY_PLUGIN_PRIVATE_H
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen#define NOTIFY_PLUGIN_PRIVATE_H
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen#include "notify-plugin.h"
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_transaction_begin(struct mailbox_transaction_context *t);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_save(struct mail *mail);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_copy(struct mail *src, struct mail *dst);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_expunge(struct mail *mail);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_update_flags(struct mail *mail,
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen enum mail_flags old_flags);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_update_keywords(struct mail *mail,
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen const char *const *old_keywords);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_transaction_commit(struct mailbox_transaction_context *t,
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen struct mail_transaction_commit_changes *changes);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mail_transaction_rollback(struct mailbox_transaction_context *t);
132bfe8fcb7a1be790dc8b5bf9d155c9f060808dTimo Sirainenvoid notify_contexts_mailbox_create(struct mailbox *box);
95c4f06cba717df14358ec883b1bd1aec6cbf0a1Timo Sirainenvoid notify_contexts_mailbox_update(struct mailbox *box);
61b0637759146621cbb7edcbd0b03a71cfd66dfeTimo Sirainenvoid notify_contexts_mailbox_delete_begin(struct mailbox *box);
61b0637759146621cbb7edcbd0b03a71cfd66dfeTimo Sirainenvoid notify_contexts_mailbox_delete_commit(struct mailbox *box);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_contexts_mailbox_delete_rollback(void);
71e88fae3be360e9a93b3398e743f99a6f05d2edTimo Sirainenvoid notify_contexts_mailbox_rename(struct mailbox *src, struct mailbox *dest);
95c4f06cba717df14358ec883b1bd1aec6cbf0a1Timo Sirainenvoid notify_contexts_mailbox_set_subscribed(struct mailbox *box,
95c4f06cba717df14358ec883b1bd1aec6cbf0a1Timo Sirainen bool subscribed);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainenvoid notify_plugin_init_storage(struct module *module);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainenvoid notify_plugin_deinit_storage(void);
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen
56c35c844320b0a157d1aaa6b3e62b7f3851b235Timo Sirainen#endif