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-fs/istream-fs-file.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/lib-fs/istream-fs-file.h (limited to 'src/lib-fs/istream-fs-file.h') 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 -- cgit v1.2.3