FwupdPlugin.Firmware.new_from_gtypes
Description: Reference for FwupdPlugin.Firmware.new_from_gtypes

### Constructor

# FwupdPlugin Firmwarenew_from_gtypes

#### Declaration [src]

    FuFirmware*
    fu_firmware_new_from_gtypes (
      GBytes* fw,
      FwupdInstallFlags flags,
      GError** error,
      ...
    )

#### Description [src]

Tries to parse the firmware with each `GType` in order.

Available since: | 1.5.6
This constructor is not directly available to language bindings

#### Parameters

`fw` | `GBytes`
| Firmware blob.
| The data is owned by the caller of the function.
`flags` | `FwupdInstallFlags`
| Install flags, e.g. `FWUPD_INSTALL_FLAG_IGNORE_CHECKSUM`.
`error` | `GError`
| Optional return location for an error.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`...` | ``
| An array of `GTypes`, ending with `G_TYPE_INVALID`.

#### Return value

Returns: | `FuFirmware`
| A `FuFirmware`, or `NULL`.
| The caller of the function takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.