mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 06:22:59 +03:00
[image] Eliminate the register_and_xxx_image() functions
All users of imgdownload() require registration of the image, so make registration an integral part of imgdownload() itself and simplify the "action" parameter to be one of image_select(), image_exec() et al. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -11,11 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
#include <ipxe/image.h>
|
||||
|
||||
extern int register_and_put_image ( struct image *image );
|
||||
extern int register_and_probe_image ( struct image *image );
|
||||
extern int register_and_select_image ( struct image *image );
|
||||
extern int register_and_boot_image ( struct image *image );
|
||||
extern int register_and_replace_image ( struct image *image );
|
||||
extern int imgdownload ( struct uri *uri, const char *name, const char *cmdline,
|
||||
int ( * action ) ( struct image *image ) );
|
||||
extern int imgdownload_string ( const char *uri_string, const char *name,
|
||||
|
||||
Reference in New Issue
Block a user