diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/lib-fs/istream-fs-file.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/lib-fs/istream-fs-file.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib-fs/istream-fs-file.h b/src/lib-fs/istream-fs-file.h new file mode 100644 index 0000000..2821c0e --- /dev/null +++ b/src/lib-fs/istream-fs-file.h @@ -0,0 +1,13 @@ +#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 |