changeset 20717:4e90ac53cd05

lib-fs: Moved fs_write_stream_abort_parent() to fs-api-private.h Only fs wrapper drivers are supposed to call it.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Fri, 09 Sep 2016 02:50:27 +0300
parents 097b3edfae94
children 2dd5bd882eab
files src/lib-fs/fs-api-private.h src/lib-fs/fs-api.h
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-fs/fs-api-private.h	Thu Sep 08 19:01:54 2016 +0300
+++ b/src/lib-fs/fs-api-private.h	Fri Sep 09 02:50:27 2016 +0300
@@ -172,4 +172,8 @@
 
 void fs_file_timing_end(struct fs_file *file, enum fs_op op);
 
+/* Same as fs_write_stream_abort_error(), except it closes the *parent* file
+   and error is left untouched */
+void fs_write_stream_abort_parent(struct fs_file *file, struct ostream **output);
+
 #endif
--- a/src/lib-fs/fs-api.h	Thu Sep 08 19:01:54 2016 +0300
+++ b/src/lib-fs/fs-api.h	Fri Sep 09 02:50:27 2016 +0300
@@ -277,9 +277,6 @@
 void fs_write_stream_abort(struct fs_file *file, struct ostream **output);
 void fs_write_stream_abort_error(struct fs_file *file, struct ostream **output, const char *error_fmt, ...) ATTR_FORMAT(3, 4);
 
-/* Same as above, except it closes the *parent* file and error is left untouched */
-void fs_write_stream_abort_parent(struct fs_file *file, struct ostream **output);
-
 /* Set a hash to the following write. The storage can then verify that the
    input data matches the specified hash, or fail if it doesn't. Typically
    implemented by Content-MD5 header. */