summaryrefslogtreecommitdiff
path: root/tools/imagetool.h
diff options
context:
space:
mode:
authorGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>2015-01-15 02:54:41 -0200
committerTom Rini <trini@ti.com>2015-01-29 13:38:41 -0500
commit67f946cd18ce56a7caf6195834334a585a669056 (patch)
tree9f7d4b0037fa2b728949b6d43724489b89db2f07 /tools/imagetool.h
parentf41f5b7c055865bae32129d005fed073315d589a (diff)
dumpimage: replace the term "datafile" by "subimage"
Signed-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
Diffstat (limited to 'tools/imagetool.h')
-rw-r--r--tools/imagetool.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h
index 8724cb525f..f35dec71c7 100644
--- a/tools/imagetool.h
+++ b/tools/imagetool.h
@@ -110,14 +110,15 @@ struct image_type_params {
void (*set_header) (void *, struct stat *, int,
struct image_tool_params *);
/*
- * This function is used by the command to retrieve a data file from
- * the image (i.e. dumpimage -i <image> -p <position> <data_file>).
+ * This function is used by the command to retrieve a component
+ * (sub-image) from the image (i.e. dumpimage -i <image> -p <position>
+ * <sub-image-name>).
* Thus the code to extract a file from an image must be put here.
*
* Returns 0 if the file was successfully retrieved from the image,
* or a negative value on error.
*/
- int (*extract_datafile) (void *, struct image_tool_params *);
+ int (*extract_subimage)(void *, struct image_tool_params *);
/*
* Some image generation support for ex (default image type) supports
* more than one type_ids, this callback function is used to check
@@ -169,18 +170,18 @@ int imagetool_verify_print_header(
struct image_tool_params *params);
/**
- * imagetool_save_datafile - store data into a file
+ * imagetool_save_subimage - store data into a file
* @file_name: name of the destination file
* @file_data: data to be written
* @file_len: the amount of data to store
*
- * imagetool_save_datafile() store file_len bytes of data pointed by file_data
+ * imagetool_save_subimage() store file_len bytes of data pointed by file_data
* into the file name by file_name.
*
* returns:
* zero in case of success or a negative value if fail.
*/
-int imagetool_save_datafile(
+int imagetool_save_subimage(
const char *file_name,
ulong file_data,
ulong file_len);
@@ -202,7 +203,7 @@ void pbl_load_uboot(int fd, struct image_tool_params *mparams);
_verify_header, \
_print_header, \
_set_header, \
- _extract_datafile, \
+ _extract_subimage, \
_check_image_type, \
_fflag_handle, \
_vrec_header \
@@ -215,7 +216,7 @@ void pbl_load_uboot(int fd, struct image_tool_params *mparams);
.verify_header = _verify_header, \
.print_header = _print_header, \
.set_header = _set_header, \
- .extract_datafile = _extract_datafile, \
+ .extract_subimage = _extract_subimage, \
.check_image_type = _check_image_type, \
.fflag_handle = _fflag_handle, \
.vrec_header = _vrec_header \