Change-Id: Ib343925388826c79e60a7e9d60b7f2b62e8aceeb
#include <errno.h>
#include <libgen.h>
#include <stdio.h>
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
}
}
}
- result = apply_patch_brotli((char *)source_filename, outname, tar_file, -1, &free_space);
+ result = apply_patch_brotli((char *)source_filename, outname, tar_file, -1, &free_space, true);
if (output >= 0) {
fsync(output);
close(output);
*/
#pragma once
+#include <stdbool.h>
#include <libtar.h>
-int apply_patch_brotli(const char *source_file, const char *dest_file, TAR *patch_tar, size_t dest_size, size_t *free_space);
+int apply_patch_brotli(const char *source_file, const char *dest_file, TAR *patch_tar, size_t dest_size, size_t *free_space, bool write_all);