summaryrefslogtreecommitdiffstats
path: root/util/cbfstool/cbfs_image.h
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/cbfs_image.h')
-rw-r--r--util/cbfstool/cbfs_image.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cbfstool/cbfs_image.h b/util/cbfstool/cbfs_image.h
index 1bd74cedd141..5772b1ba1520 100644
--- a/util/cbfstool/cbfs_image.h
+++ b/util/cbfstool/cbfs_image.h
@@ -84,6 +84,11 @@ int cbfs_compact_instance(struct cbfs_image *image);
Returns 0 on success, otherwise non-zero. */
int cbfs_expand_to_region(struct buffer *region);
+/* Truncate a CBFS by removing a trailing "empty" file if it exists.
+ Returns 0 on success, otherwise non-zero and passes the CBFS' remaining
+ size in the size argument. */
+int cbfs_truncate_space(struct buffer *region, uint32_t *size);
+
/* Releases the CBFS image. Returns 0 on success, otherwise non-zero. */
int cbfs_image_delete(struct cbfs_image *image);