|
iPXE
|
gzip compressed images More...
#include <stdlib.h>#include <string.h>#include <errno.h>#include <assert.h>#include <ipxe/deflate.h>#include <ipxe/image.h>#include <ipxe/zlib.h>#include <ipxe/gzip.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| static int | gzip_extract (struct image *image, struct image *extracted) |
| Extract gzip image. More... | |
| static int | gzip_probe (struct image *image) |
| Probe gzip image. More... | |
| struct image_type gzip_image_type | __image_type (PROBE_NORMAL) |
| gzip image type More... | |
gzip compressed images
Definition in file gzip.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Extract gzip image.
| image | Image |
| extracted | Extracted image |
| rc | Return status code |
Definition at line 48 of file gzip.c.
References assert(), gzip_crc_header::crc, gzip_footer::crc, data, image::data, DBGC, DEFLATE_RAW, EINVAL, extra, GZIP_FL_COMMENT, GZIP_FL_EXTRA, GZIP_FL_HCRC, GZIP_FL_NAME, header, image_set_len(), le16_to_cpu, le32_to_cpu, image::len, gzip_footer::len, len, image::name, rc, strerror(), strnlen(), and zlib_deflate().
|
static |
Probe gzip image.
| image | gzip image |
| rc | Return status code |
Definition at line 149 of file gzip.c.
References cpu_to_be16, image::data, DBGC, ENOEXEC, GZIP_MAGIC, header, image::len, and image::name.
| struct image_type gzip_image_type __image_type | ( | PROBE_NORMAL | ) |
gzip image type
1.8.15