Method

FwupdPluginFirmwareget_image_by_gtype

Declaration [src]

FuFirmware*
fu_firmware_get_image_by_gtype (
  FuFirmware* self,
  GType gtype,
  GError** error
)

Description [src]

Gets the firmware image using the image GType.

Available since:1.9.3

Parameters

gtype GType
 

An image GType.

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

Return value

Returns: FuFirmware
 

A FuFirmware, or NULL if the image is not found.

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