FwupdPlugin.FdtImage.get_attr

### Method

# FwupdPlugin FdtImageget_attr

#### Declaration [src]

    GBytes*
    fu_fdt_image_get_attr (
      FuFdtImage* self,
      const gchar* key,
      GError** error
    )

#### Description [src]

Gets a attribute from the image.

Available since: | 1.8.2

#### Parameters

`key` | `const gchar*`
| String, e.g. `creator`
| 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: | `GBytes`
| Blob.
| The caller of the method takes ownership of the data, and is responsible for freeing it.