Mercurial > dovecot > core-2.2
comparison src/lib-fs/fs-api.h @ 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 | ff73fdd0558d |
children | 59a3ab804bcc |
comparison
equal
deleted
inserted
replaced
20716:097b3edfae94 | 20717:4e90ac53cd05 |
---|---|
275 fs_write_stream_finish(), i.e. it can't be used to abort a pending async | 275 fs_write_stream_finish(), i.e. it can't be used to abort a pending async |
276 write. */ | 276 write. */ |
277 void fs_write_stream_abort(struct fs_file *file, struct ostream **output); | 277 void fs_write_stream_abort(struct fs_file *file, struct ostream **output); |
278 void fs_write_stream_abort_error(struct fs_file *file, struct ostream **output, const char *error_fmt, ...) ATTR_FORMAT(3, 4); | 278 void fs_write_stream_abort_error(struct fs_file *file, struct ostream **output, const char *error_fmt, ...) ATTR_FORMAT(3, 4); |
279 | 279 |
280 /* Same as above, except it closes the *parent* file and error is left untouched */ | |
281 void fs_write_stream_abort_parent(struct fs_file *file, struct ostream **output); | |
282 | |
283 /* Set a hash to the following write. The storage can then verify that the | 280 /* Set a hash to the following write. The storage can then verify that the |
284 input data matches the specified hash, or fail if it doesn't. Typically | 281 input data matches the specified hash, or fail if it doesn't. Typically |
285 implemented by Content-MD5 header. */ | 282 implemented by Content-MD5 header. */ |
286 void fs_write_set_hash(struct fs_file *file, const struct hash_method *method, | 283 void fs_write_set_hash(struct fs_file *file, const struct hash_method *method, |
287 const void *digest); | 284 const void *digest); |