Method

FwupdPluginFirmwareadd_image

since: 1.3.1

Declaration [src]

void
fu_firmware_add_image (
  FuFirmware* self,
  FuFirmware* img
)

Description [src]

Adds an image to the firmware.

If FU_FIRMWARE_FLAG_DEDUPE_ID is set, an image with the same ID is already present it is replaced.

Available since: 1.3.1

Parameters

img

Type: FuFirmware

A child firmware image.

The data is owned by the caller of the function.