Files
ipxe/src/include/usr/imgmgmt.h
T
Michael Brown 989a7a8032 [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>
2021-01-25 17:03:56 +00:00

24 lines
588 B
C

#ifndef _USR_IMGMGMT_H
#define _USR_IMGMGMT_H
/** @file
*
* Image management
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <ipxe/image.h>
extern int imgdownload ( struct uri *uri, unsigned long timeout,
struct image **image );
extern int imgdownload_string ( const char *uri_string, unsigned long timeout,
struct image **image );
extern int imgacquire ( const char *name, unsigned long timeout,
struct image **image );
extern void imgstat ( struct image *image );
extern int imgmem ( const char *name, userptr_t data, size_t len );
#endif /* _USR_IMGMGMT_H */