mkimage: Return struct image_tool_params to struct imgtool

The existing name is confusing since it includes state as well as
parameters. In fact it includes nearly everything known about the tool
while it is running. Rename the struct to imgtool to reflect this.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-31 11:50:28 +12:00
parent fe1300387b
commit 8855e0de5c
38 changed files with 199 additions and 202 deletions

View File

@@ -30,13 +30,13 @@ static int imagetool_verify_print_header_by_type(
void *ptr,
struct stat *sbuf,
struct imgtool_funcs *tparams,
struct image_tool_params *params);
struct imgtool *params);
int imagetool_verify_print_header(
void *ptr,
struct stat *sbuf,
struct imgtool_funcs *tparams,
struct image_tool_params *params)
struct imgtool *params)
{
int retval = -1;
struct imgtool_funcs **curr;
@@ -89,7 +89,7 @@ static int imagetool_verify_print_header_by_type(
void *ptr,
struct stat *sbuf,
struct imgtool_funcs *tparams,
struct image_tool_params *params)
struct imgtool *params)
{
int retval = -1;
@@ -150,7 +150,7 @@ int imagetool_save_subimage(
return 0;
}
int imagetool_get_filesize(struct image_tool_params *params, const char *fname)
int imagetool_get_filesize(struct imgtool *params, const char *fname)
{
struct stat sbuf;
int fd;