45 struct image **extracted ) {
73 DBGC (
image,
"IMAGE %s could not extract image: %s\n",
108 struct image *extracted;
117 goto err_set_cmdline;
struct arbelprm_rc_send_wqe rc
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
char * image_strip_suffix(struct image *image)
Strip dot suffix from image name, if present.
struct image_type * type
Image type, if known.
REQUIRING_SYMBOL(image_extract)
#define IMAGE_AUTO_UNREGISTER
Image will be automatically unregistered after execution.
#define ENOTSUP
Operation not supported.
char * cmdline
Command line to pass to image.
int image_exec(struct image *image)
Execute image.
#define ENOMEM
Not enough space.
int image_extract(struct image *image, const char *name, struct image **extracted)
Extract archive image.
int register_image(struct image *image)
Register executable image.
char * strerror(int errno)
Retrieve string representation of error number.
int image_set_name(struct image *image, const char *name)
Set image name.
#define IMAGE_TRUSTED
Image is trusted.
struct uri * uri
URI of image.
static void image_put(struct image *image)
Decrement reference count on an image.
int(* extract)(struct image *image, struct image *extracted)
Extract archive image.
void unregister_image(struct image *image)
Unregister executable image.
REQUIRE_OBJECT(config_archive)
int image_set_cmdline(struct image *image, const char *cmdline)
Set image command line.
static void image_trust(struct image *image)
Set image as trusted.
struct image * alloc_image(struct uri *uri)
Allocate executable image.
#define NULL
NULL pointer (VOID *)
int image_extract_exec(struct image *image)
Extract and execute image.