Method

FwupdPluginFirmwareparse_full

Declaration [src]

gboolean
fu_firmware_parse_full (
  FuFirmware* self,
  GBytes* fw,
  gsize offset,
  FwupdInstallFlags flags,
  GError** error
)

Description [src]

Parses a firmware, typically breaking the firmware into images.

Available since:1.8.2

Parameters

fw GBytes*
 

Firmware blob.

 The data is owned by the caller of the function.
offset gsize
 

Start offset, useful for ignoring a bootloader.

flags FwupdInstallFlags
 

Install flags, e.g. FWUPD_INSTALL_FLAG_FORCE.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gboolean
 

TRUE for success.