diff options
| author | Michael Brown | 2021-01-20 19:03:16 +0100 |
|---|---|---|
| committer | Michael Brown | 2021-01-22 19:34:47 +0100 |
| commit | 99ac69b8a9a48207913e98ac6b357c029b0eef81 (patch) | |
| tree | 22f88f44671cb1fc29fe5ac47b50b5fa54b34586 /src/include | |
| parent | [build] Allow an initrd script to be provided via genfsimg (diff) | |
| download | ipxe-99ac69b8a9a48207913e98ac6b357c029b0eef81.tar.gz ipxe-99ac69b8a9a48207913e98ac6b357c029b0eef81.tar.xz ipxe-99ac69b8a9a48207913e98ac6b357c029b0eef81.zip | |
[image] Provide image_set_data()
Extract part of the logic in initrd_init() to a standalone function
image_set_data().
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/image.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/image.h b/src/include/ipxe/image.h index 2e7eb4cee..4c3877607 100644 --- a/src/include/ipxe/image.h +++ b/src/include/ipxe/image.h @@ -175,6 +175,7 @@ extern struct image * alloc_image ( struct uri *uri ); extern int image_set_uri ( struct image *image, struct uri *uri ); extern int image_set_name ( struct image *image, const char *name ); extern int image_set_cmdline ( struct image *image, const char *cmdline ); +extern int image_set_data ( struct image *image, userptr_t data, size_t len ); extern int register_image ( struct image *image ); extern void unregister_image ( struct image *image ); struct image * find_image ( const char *name ); |
