view src/lib-storage/mailbox-watch.h @ 19604:c996bc091c6b

master: Do not close stdout if going foreground This lets one to use /dev/stdout for logging. Mainly useful for testing purposes where we can generate log output to stdout and use tee to write it to a file for later examination.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Mon, 18 Jan 2016 15:50:23 +0200
parents 4da6efa3fd91
children
line wrap: on
line source

#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