diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-03-29 10:26:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-04-01 10:38:55 +0200 |
commit | b8837986a0a828577426c9d7eb41ca712bfca067 (patch) | |
tree | 85b8ac015930b28dc65770f9ed9dc4e0f4a6ce6d /include/image-metadata.h | |
parent | 439d6830517e15a2b31e90733b8aeaaf98b9e0f2 (diff) | |
download | barebox-b8837986a0a828577426c9d7eb41ca712bfca067.tar.gz barebox-b8837986a0a828577426c9d7eb41ca712bfca067.tar.xz |
imd: export functions
To make the image metadata API usable for external users export
some functions.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/image-metadata.h')
-rw-r--r-- | include/image-metadata.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/image-metadata.h b/include/image-metadata.h index 34dae5ce34..33ca9c6bf6 100644 --- a/include/image-metadata.h +++ b/include/image-metadata.h @@ -80,6 +80,11 @@ static inline uint32_t imd_read_length(struct imd_header *imd) struct imd_header *imd_find_type(struct imd_header *imd, uint32_t type); +struct imd_header *imd_get(void *buf, int size); +const char *imd_string_data(struct imd_header *imd, int index); +const char *imd_type_to_name(uint32_t type); +char *imd_concat_strings(struct imd_header *imd); + extern int imd_command_verbose; int imd_command_setenv(const char *variable_name, const char *value); int imd_command(int argc, char *argv[]); |