Lines Matching refs:file
4 #include "dbox-file.h"
7 struct dbox_file file;
10 /* 0 while file is being created */
21 void sdbox_file_free(struct dbox_file *file);
23 /* Get file's extrefs metadata. */
24 int sdbox_file_get_attachments(struct dbox_file *file, const char **extrefs_r);
25 /* Returns attachment path for this file, given the source path. The result is
29 sdbox_file_attachment_relpath(struct sdbox_file *file, const char *srcpath);
31 /* Assign UID for a newly created file (by renaming it) */
32 int sdbox_file_assign_uid(struct sdbox_file *file, uint32_t uid,
35 int sdbox_file_create_fd(struct dbox_file *file, const char *path,
37 /* Move the file to alt path or back. */
38 int sdbox_file_move(struct dbox_file *file, bool alt_path);
39 /* Unlink file and all of its referenced attachments. */
41 /* Unlink file and its attachments when rolling back a saved message. */
42 int sdbox_file_unlink_aborted_save(struct sdbox_file *file);