mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
[image] Allow download job to complete before acting upon image
Allow the monojob controlling the download to complete before calling register_image() and friends. This allows the trailing "ok" from monojob.c to be printed before the image starts executing (and possibly printing output of its own). Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -13,7 +13,6 @@ struct interface;
|
||||
struct image;
|
||||
|
||||
extern int create_downloader ( struct interface *job, struct image *image,
|
||||
int ( * register_image ) ( struct image *image ),
|
||||
int type, ... );
|
||||
|
||||
#endif /* _IPXE_DOWNLOADER_H */
|
||||
|
||||
@@ -12,9 +12,9 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
struct image;
|
||||
|
||||
extern int imgdownload ( struct image *image, struct uri *uri,
|
||||
int ( * image_register ) ( struct image *image ) );
|
||||
int ( * action ) ( struct image *image ) );
|
||||
extern int imgfetch ( struct image *image, const char *uri_string,
|
||||
int ( * image_register ) ( struct image *image ) );
|
||||
int ( * action ) ( struct image *image ) );
|
||||
extern int imgload ( struct image *image );
|
||||
extern int imgexec ( struct image *image );
|
||||
extern struct image * imgautoselect ( void );
|
||||
|
||||
Reference in New Issue
Block a user