iPXE
Functions
imgarchive.h File Reference

Archive image management. More...

#include <ipxe/image.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 
int imgextract (struct image *image, const char *name)
 Extract archive image. More...
 

Detailed Description

Archive image management.

Definition in file imgarchive.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ imgextract()

int imgextract ( struct image image,
const char *  name 
)

Extract archive image.

Parameters
imageImage
nameExtracted image name (or NULL to use default)
Return values
rcReturn status code

Definition at line 43 of file imgarchive.c.

43  {
44  struct image *extracted;
45  int rc;
46 
47  /* Extract archive image */
48  if ( ( rc = image_extract ( image, name, &extracted ) ) != 0 ) {
49  printf ( "Could not extract image: %s\n", strerror ( rc ) );
50  return rc;
51  }
52 
53  return 0;
54 }
struct arbelprm_rc_send_wqe rc
Definition: arbel.h:14
const char * name
Definition: ath9k_hw.c:1984
int printf(const char *fmt,...)
Write a formatted string to the console.
Definition: vsprintf.c:464
An executable image.
Definition: image.h:24
int image_extract(struct image *image, const char *name, struct image **extracted)
Extract archive image.
Definition: archive.c:44
char * strerror(int errno)
Retrieve string representation of error number.
Definition: strerror.c:78

References image_extract(), name, printf(), rc, and strerror().

Referenced by imgextract_exec().