#ifndef MAILBOX_LIST_NOTIFY_H
#define MAILBOX_LIST_NOTIFY_H
#include "guid.h"
struct mailbox_list_notify;
enum mailbox_list_notify_event {
#define MAILBOX_LIST_NOTIFY_STATUS \
};
struct mailbox_list_notify {
};
struct mailbox_list_notify_rec {
/* Each record can contain multiple events */
/* For all events: */
/* For selectable mailboxes: */
/* For rename: */
const char *old_vname;
};
typedef void mailbox_list_notify_callback_t(void *);
/* Monitor for specified changes in the mailbox list.
Returns 0 if ok, -1 if notifications aren't supported. */
struct mailbox_list_notify **notify_r);
/* Get the next change. Returns 1 if record was returned, 0 if there are no
more changes currently or -1 if some error occurred */
const struct mailbox_list_notify_rec **rec_r);
/* Call the specified callback when something changes. */
/* Flush any delayed notifications now. */
#endif