aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/image.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-01-25 16:18:28 +0000
committerMichael Brown <mcb30@ipxe.org>2021-01-25 17:03:56 +0000
commit989a7a8032db02eb0524bd78a674d3b087dea3a6 (patch)
tree3ead7f99b466e3274d29dbeb0df7374905ff92d5 /src/include/ipxe/image.h
parentffc41ae9d12f319be67053e529091c8710303d3c (diff)
downloadipxe-989a7a8032db02eb0524bd78a674d3b087dea3a6.zip
ipxe-989a7a8032db02eb0524bd78a674d3b087dea3a6.tar.gz
ipxe-989a7a8032db02eb0524bd78a674d3b087dea3a6.tar.bz2
[image] Provide image_memory()
Consolidate the remaining logic common to initrd_init() and imgmem() into a shared image_memory() function. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/image.h')
-rw-r--r--src/include/ipxe/image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/ipxe/image.h b/src/include/ipxe/image.h
index 4c38776..4fd2700 100644
--- a/src/include/ipxe/image.h
+++ b/src/include/ipxe/image.h
@@ -184,6 +184,8 @@ extern int image_replace ( struct image *replacement );
extern int image_select ( struct image *image );
extern struct image * image_find_selected ( void );
extern int image_set_trust ( int require_trusted, int permanent );
+extern struct image * image_memory ( const char *name, userptr_t data,
+ size_t len );
extern int image_pixbuf ( struct image *image, struct pixel_buffer **pixbuf );
extern int image_asn1 ( struct image *image, size_t offset,
struct asn1_cursor **cursor );