46 struct image **extracted ) {
74 DBGC (
image,
"IMAGE %s could not extract image: %s\n",
109 struct image *extracted;
118 goto err_set_cmdline;
#define NULL
NULL pointer (VOID *)
struct arbelprm_rc_send_wqe rc
int image_extract_exec(struct image *image)
Extract and execute image.
int image_extract(struct image *image, const char *name, struct image **extracted)
Extract archive image.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define REQUIRE_OBJECT(object)
Require an object.
#define ENOMEM
Not enough space.
#define ENOTSUP
Operation not supported.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
#define REQUIRING_SYMBOL(symbol)
Specify the file's requiring symbol.
struct image * alloc_image(struct uri *uri)
Allocate executable image.
char * image_strip_suffix(struct image *image)
Strip dot suffix from image name, if present.
void unregister_image(struct image *image)
Unregister executable image.
int register_image(struct image *image)
Register executable image.
int image_set_cmdline(struct image *image, const char *cmdline)
Set image command line.
int image_replace(struct image *replacement)
Set replacement image.
int image_set_name(struct image *image, const char *name)
Set image name.
#define IMAGE_TRUSTED
Image is trusted.
static void image_trust(struct image *image)
Set image as trusted.
static void image_put(struct image *image)
Decrement reference count on an image.
#define IMAGE_AUTO_UNREGISTER
Image will be automatically unregistered after execution.
char * strerror(int errno)
Retrieve string representation of error number.
int(* extract)(struct image *image, struct image *extracted)
Extract archive image.
struct image_type * type
Image type, if known.
struct uri * uri
URI of image.
char * cmdline
Command line to pass to image.