#include <image.h>
Data Fields | |
| char * | name |
| Name of this image type. | |
| int(* | load )(struct image *image) |
| Load image into memory. | |
| int(* | exec )(struct image *image) |
| Execute loaded image. | |
Definition at line 72 of file image.h.
| char* image_type::name |
Name of this image type.
Definition at line 74 of file image.h.
Referenced by image_autoload(), image_load_type(), and imgstat().
| int( * image_type::load)(struct image *image) |
Load image into memory.
| rc | Return status code |
If the file image is in the correct format, the method must update image->type to point to its own type (unless image->type is already set). This allows the autoloading code to disambiguate between "this is not my image format" and "there is something wrong with this image". In particular, setting image->type and then returning an error will cause image_autoload() to abort and return an error, rather than continuing to the next image type.
Referenced by image_load_type().
| int( * image_type::exec)(struct image *image) |
1.5.7.1