]> 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)
committerGitLab <gitlab@git.dovecot.net>
Fri, 9 Sep 2016 06:44:03 +0000 (09:44 +0300)
Only fs wrapper drivers are supposed to call it.

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

index 0d71a9a2e589a9653f6d5fa1dff792b1ea11a2ee..ac9a5cd2ebb5c7c316dc6e0a821fe42777d197c6 100644 (file)
@@ -173,4 +173,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 be4b800cef798e6bd77975d8fe2026a3986eb2ac..f4cbfc096385128ffdb1586272e9aa53f7b8e86e 100644 (file)
@@ -276,9 +276,6 @@ int fs_write_stream_finish_async(struct fs_file *file);
    write. */
 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. */