diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-30 11:31:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-02-08 08:55:58 +0100 |
commit | cbbca053c40ed4daf539ce920dcfc0289c0e5398 (patch) | |
tree | 6cb7a7a4fa18a1ae634e2afef62d7420495ee81c /include/image-fit.h | |
parent | 01add72f388ad0953a3c18fe6d3e564b38545368 (diff) | |
download | barebox-cbbca053c40ed4daf539ce920dcfc0289c0e5398.tar.gz barebox-cbbca053c40ed4daf539ce920dcfc0289c0e5398.tar.xz |
FIT: Allow to open buffer as FIT image
This adds fit_open_buf() which can open a buffer as FIT image.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/image-fit.h')
-rw-r--r-- | include/image-fit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/image-fit.h b/include/image-fit.h index 79b8101b83..fc0883b5dc 100644 --- a/include/image-fit.h +++ b/include/image-fit.h @@ -22,7 +22,8 @@ #include <bootm.h> struct fit_handle { - void *fit; + const void *fit; + void *fit_alloc; size_t size; bool verbose; @@ -35,6 +36,8 @@ struct fit_handle { struct fit_handle *fit_open(const char *filename, bool verbose, enum bootm_verify verify); +struct fit_handle *fit_open_buf(const void *buf, size_t len, bool verbose, + enum bootm_verify verify); void *fit_open_configuration(struct fit_handle *handle, const char *name); int fit_has_image(struct fit_handle *handle, void *configuration, const char *name); |