view src/lib-fs/istream-fs-file.h @ 22656:1789bf2a1e01

director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0 The reset command would just hang in that case. doveadm would never have sent this, so this is just an extra sanity check.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Sun, 05 Nov 2017 23:51:56 +0200
parents 5c72e7d65e6f
children
line wrap: on
line source

#ifndef ISTREAM_FS_FILE_H
#define ISTREAM_FS_FILE_H

struct fs_file;

/* Open the given file only when something is actually tried to be read from
   the stream. The file is automatically deinitialized when the stream is
   destroyed (which is why it's also set to NULL so it's not accidentally
   double-freed). */
struct istream *
i_stream_create_fs_file(struct fs_file **file, size_t max_buffer_size);

#endif