Method

FwupdPluginFirmwareparse

Declaration [src]

gboolean
fu_firmware_parse (
  FuFirmware* self,
  GBytes* fw,
  FwupdInstallFlags flags,
  GError** error
)

Description [src]

Parses a firmware, typically breaking the firmware into images.

Available since:1.3.1

Parameters

fw GBytes
 

Firmware blob.

 The data is owned by the caller of the function.
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.