]> wimlib.net Git - wimlib/blobdiff - include/wimlib/apply.h
Report some extraction errors on Windows
[wimlib] / include / wimlib / apply.h
index d8e6d936f66900302cbdb9f4a9f6f4ffc8f6d23e..54850feccc1f486ac9eb46d8e2a12ce270e04371 100644 (file)
@@ -128,6 +128,12 @@ end_file_structure_phase(struct apply_ctx *ctx);
 extern int
 end_file_metadata_phase(struct apply_ctx *ctx);
 
+static inline int
+report_apply_error(struct apply_ctx *ctx, int error_code, const tchar *path)
+{
+       return report_error(ctx->progfunc, ctx->progctx, error_code, path);
+}
+
 /* Returns any of the aliases of an inode that are being extracted.  */
 #define inode_first_extraction_dentry(inode)           \
        list_first_entry(&(inode)->i_extraction_aliases,        \