notify-plugin.h revision 56c35c844320b0a157d1aaa6b3e62b7f3851b235
#ifndef NOTIFY_PLUGIN_H
#define NOTIFY_PLUGIN_H
enum mail_flags;
struct mail;
struct mail_transaction_commit_changes;
struct mail_storage;
struct mailbox_transaction_context;
struct mailbox_list;
struct notify_context;
struct notify_vfuncs {
void *(*mail_transaction_begin)(struct mailbox_transaction_context *t);
enum mail_flags old_flags);
const char *const *old_keywords);
void (*mail_transaction_commit)(void *txn,
struct mail_transaction_commit_changes *changes);
void (*mail_transaction_rollback)(void *txn);
const char *name);
const char *name);
void (*mailbox_delete_rollback)(void *txn);
const char *oldname,
struct mailbox_list *newlist,
const char *newname, bool rename_children);
};
void notify_noop_mail_transaction_begin(struct mailbox_transaction_context *t);
enum mail_flags old_flags);
const char *const *old_keywords);
void notify_noop_mail_transaction_commit(void *txn,
struct mail_transaction_commit_changes *changes);
void notify_noop_mail_transaction_rollback(void *txn);
const char *name);
const char *name);
void notify_noop_mailbox_delete_rollback(void *txn);
const char *oldname,
struct mailbox_list *newlist,
const char *newname, bool rename_children);
struct notify_context *
void notify_plugin_init(void);
void notify_plugin_deinit(void);
#endif