mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 21:11:03 +03:00
[image] Move the register_and_{select|boot}_image() functions to imgmgmt.c
These functions are used only as the "action" parameters to imgdownload() or imgfetch(), and so belong in imgmgmt.c rather than image.c Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -143,8 +143,6 @@ extern int image_probe ( struct image *image );
|
||||
extern int image_exec ( struct image *image );
|
||||
extern int image_select ( struct image *image );
|
||||
extern struct image * image_find_selected ( void );
|
||||
extern int register_and_select_image ( struct image *image );
|
||||
extern int register_and_boot_image ( struct image *image );
|
||||
|
||||
/**
|
||||
* Increment reference count on an image
|
||||
|
||||
@@ -11,6 +11,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
|
||||
#include <ipxe/image.h>
|
||||
|
||||
extern int register_and_select_image ( struct image *image );
|
||||
extern int register_and_boot_image ( struct image *image );
|
||||
extern int imgdownload ( struct image *image, struct uri *uri,
|
||||
int ( * action ) ( struct image *image ) );
|
||||
extern int imgfetch ( struct image *image, const char *uri_string,
|
||||
|
||||
Reference in New Issue
Block a user