diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-05-06 13:09:30 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-05-08 15:34:19 +0100 |
commit | de4f31cdcad7c4734c68da828351eeb7afd0360e (patch) | |
tree | d776dd3e9ffceb7b90019e80046d1b49d099a21b /src/include | |
parent | 106f4c539182b4a92b8a427b637497e6da19bd85 (diff) | |
download | ipxe-de4f31cdcad7c4734c68da828351eeb7afd0360e.zip ipxe-de4f31cdcad7c4734c68da828351eeb7afd0360e.tar.gz ipxe-de4f31cdcad7c4734c68da828351eeb7afd0360e.tar.bz2 |
[image] Provide image_set_len() utility function
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 4fd2700..046edf9 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_len ( struct image *image, size_t len ); 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 ); |