Method

FwupdPluginFirmwareget_image_by_id_stream

Declaration [src]

GInputStream*
fu_firmware_get_image_by_id_stream (
  FuFirmware* self,
  const gchar* id,
  GError** error
)

Description [src]

Gets the firmware image stream using the image ID.

Available since:2.0.0

Parameters

id const gchar*
 

Image ID, e.g. config

 The argument can be NULL.
 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
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.