FwupdPlugin.Device.set_metadata

### Method

# FwupdPlugin Deviceset_metadata

#### Declaration [src]

    void
    fu_device_set_metadata (
      FuDevice* self,
      const gchar* key,
      const gchar* value
    )

#### Description [src]

Sets an item of metadata on the device.

Available since: | 0.1.0

#### Parameters

`key` | `const gchar*`
| The key.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`value` | `const gchar*`
| The string value.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.