iPXE
gzip.h File Reference

gzip compressed images More...

#include <stdint.h>
#include <ipxe/image.h>

Go to the source code of this file.

Data Structures

struct  gzip_header
 gzip header More...
struct  gzip_extra_header
 gzip extra header More...
struct  gzip_crc_header
 gzip CRC header More...
struct  gzip_footer
 gzip footer More...

Macros

#define GZIP_MAGIC   0x1f8b
 Magic ID.
#define GZIP_METHOD_DEFLATE   0x08
 Compression method.
#define GZIP_FL_HCRC   0x02
 CRC header is present.
#define GZIP_FL_EXTRA   0x04
 Extra header is present.
#define GZIP_FL_NAME   0x08
 File name is present.
#define GZIP_FL_COMMENT   0x10
 File comment is present.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
struct image_type gzip_image_type __image_type (PROBE_NORMAL)

Detailed Description

gzip compressed images

Definition in file gzip.h.

Macro Definition Documentation

◆ GZIP_MAGIC

#define GZIP_MAGIC   0x1f8b

Magic ID.

Definition at line 33 of file gzip.h.

Referenced by gzip_probe().

◆ GZIP_METHOD_DEFLATE

#define GZIP_METHOD_DEFLATE   0x08

Compression method.

Definition at line 36 of file gzip.h.

◆ GZIP_FL_HCRC

#define GZIP_FL_HCRC   0x02

CRC header is present.

Definition at line 39 of file gzip.h.

Referenced by gzip_extract().

◆ GZIP_FL_EXTRA

#define GZIP_FL_EXTRA   0x04

Extra header is present.

Definition at line 42 of file gzip.h.

Referenced by gzip_extract().

◆ GZIP_FL_NAME

#define GZIP_FL_NAME   0x08

File name is present.

Definition at line 45 of file gzip.h.

Referenced by gzip_extract().

◆ GZIP_FL_COMMENT

#define GZIP_FL_COMMENT   0x10

File comment is present.

Definition at line 48 of file gzip.h.

Referenced by gzip_extract().

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ __image_type()

struct image_type gzip_image_type __image_type ( PROBE_NORMAL )
extern

References __image_type, and PROBE_NORMAL.