summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2007-01-12 07:03:02 +0100
committerMichael Brown2007-01-12 07:03:02 +0100
commitb9fea9cbacf34b5f075894038ad1ab81d414aeb9 (patch)
tree315d813f84603fc3011c95197cde9c3667f75162 /src/include
parentBe silent if there are no network interfaces (diff)
downloadipxe-b9fea9cbacf34b5f075894038ad1ab81d414aeb9.tar.gz
ipxe-b9fea9cbacf34b5f075894038ad1ab81d414aeb9.tar.xz
ipxe-b9fea9cbacf34b5f075894038ad1ab81d414aeb9.zip
Added IMAGE_LOADED flag and find_image()
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/image.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/gpxe/image.h b/src/include/gpxe/image.h
index efc6a642b..fc955c2e8 100644
--- a/src/include/gpxe/image.h
+++ b/src/include/gpxe/image.h
@@ -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 );