diff options
Diffstat (limited to 'util/cbfstool/cbfs_image.h')
-rw-r--r-- | util/cbfstool/cbfs_image.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/cbfstool/cbfs_image.h b/util/cbfstool/cbfs_image.h index 1bd74cedd1..5772b1ba15 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); |