]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-fs: Moved fs_write_stream_abort_parent() to fs-api-private.h
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 8 Sep 2016 23:50:27 +0000 (02:50 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 9 Sep 2016 11:29:37 +0000 (14:29 +0300)
Only fs wrapper drivers are supposed to call it.

src/lib-fs/fs-api-private.h
src/lib-fs/fs-api.h

index 7b2f149df67a47cb193f2e2eff66de6a30f79ef6..3b084e515522b6c617c2fef4b6cfba1e896ed417 100644 (file)
@@ -172,4 +172,8 @@ int fs_default_copy(struct fs_file *src, struct fs_file *dest);
 
 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
index 6f1c67d491badf090c714775e51cc6ec17d5014b..c1e7b3f6994a02e26c8fb8eb362f257e156069ef 100644 (file)
@@ -277,9 +277,6 @@ int fs_write_stream_finish_async(struct fs_file *file);
 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. */