Method

FwupdPluginFirmwareget_image_by_idx_stream

Declaration [src]

GInputStream*
fu_firmware_get_image_by_idx_stream (
  FuFirmware* self,
  guint64 idx,
  GError** error
)

Description [src]

Gets the firmware image stream using the image index.

Available since:2.0.0

Parameters

idx guint64
 

Image index.

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

Return value

Returns: GInputStream
 

A GInputStream of 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.