From f7548d6d28c313cf80e6f3ef89aed16a19815df1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:51:24 +0200 Subject: Adding upstream version 1:2.3.19.1+dfsg1. Signed-off-by: Daniel Baumann --- src/lib-storage/mailbox-watch.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/lib-storage/mailbox-watch.h (limited to 'src/lib-storage/mailbox-watch.h') diff --git a/src/lib-storage/mailbox-watch.h b/src/lib-storage/mailbox-watch.h new file mode 100644 index 0000000..54e48b7 --- /dev/null +++ b/src/lib-storage/mailbox-watch.h @@ -0,0 +1,11 @@ +#ifndef MAILBOX_WATCH_H +#define MAILBOX_WATCH_H + +void mailbox_watch_add(struct mailbox *box, const char *path); +void mailbox_watch_remove_all(struct mailbox *box); + +/* Create a new temporary ioloop, add all the watches back and call + io_loop_extract_notify_fd() on it. Returns fd on success, -1 on error. */ +int mailbox_watch_extract_notify_fd(struct mailbox *box, const char **reason_r); + +#endif -- cgit v1.2.3