mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
Added IMAGE_LOADED flag and find_image()
This commit is contained in:
@@ -45,8 +45,14 @@ struct image {
|
||||
|
||||
/** Image type, if known */
|
||||
struct image_type *type;
|
||||
|
||||
/** Flags */
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
/** Image is loaded */
|
||||
#define IMAGE_LOADED 0x0001
|
||||
|
||||
/** An executable or loadable image type */
|
||||
struct image_type {
|
||||
/** Name of this image type */
|
||||
@@ -102,6 +108,7 @@ extern struct list_head images;
|
||||
|
||||
extern int register_image ( struct image *image );
|
||||
extern void unregister_image ( struct image *image );
|
||||
struct image * find_image ( const char *name );
|
||||
extern int image_load ( struct image *image );
|
||||
extern int image_autoload ( struct image *image );
|
||||
extern int image_exec ( struct image *image );
|
||||
|
||||
Reference in New Issue
Block a user