Constructor

FwupdPluginFirmwarenew_from_bytes

since: 1.3.1

Declaration [src]

FuFirmware*
fu_firmware_new_from_bytes (
  GBytes* fw
)

Description [src]

Creates a firmware object with the provided image set as default.

Available since: 1.3.1

Parameters

fw

Type: GBytes

Firmware blob image.

The data is owned by the caller of the function.

Return value

Type: FuFirmware

A FuFirmware.

The caller of the function takes ownership of the data, and is responsible for freeing it.