diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-12 13:42:42 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-18 13:54:08 +0100 |
commit | bc0851db17676c3b79e7be1da14b28c679b87565 (patch) | |
tree | f8de263b4b4ba3ebb79663d2f519c6049e20c6a2 /include | |
parent | ee8e839569db30fc1d1a7fb712c4a81f6c0089b7 (diff) | |
download | barebox-bc0851db17676c3b79e7be1da14b28c679b87565.tar.gz barebox-bc0851db17676c3b79e7be1da14b28c679b87565.tar.xz |
FIT: export fit_open_configuration() and fit_open_image()
Currently only fit_open() is exported which only opens the predefined
images "kernel", "dtb" and "ramdisk". To make the FIT code more usable
for other code which may want to open other images export
fit_open_configuration() and fit_open_image().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/image-fit.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/image-fit.h b/include/image-fit.h index c49f958268..62f44dcc8d 100644 --- a/include/image-fit.h +++ b/include/image-fit.h @@ -29,6 +29,7 @@ struct fit_handle { enum bootm_verify verify; struct device_node *root; + struct device_node *conf_node; const void *kernel; unsigned long kernel_size; @@ -38,8 +39,13 @@ struct fit_handle { unsigned long initrd_size; }; -struct fit_handle *fit_open(const char *filename, const char *config, bool verbose, +struct fit_handle *fit_open(const char *filename, bool verbose, enum bootm_verify verify); +int fit_open_configuration(struct fit_handle *handle, const char *name); +int fit_has_image(struct fit_handle *handle, const char *name); +int fit_open_image(struct fit_handle *handle, const char *name, + const void **outdata, unsigned long *outsize); + void fit_close(struct fit_handle *handle); #endif /* __IMAGE_FIT_H__ */ |