### Method

# FwupdPlugin DeviceEvent set_str

since: 2.0.0

#### Declaration [src]

    void
    fu_device_event_set_str (
      FuDeviceEvent* self,
      const gchar* key,
      const gchar* value
    )

#### Description [src]

Sets a string value on the event.

Available since: 2.0.0

#### Parameters

`key`

  Type: `const gchar*`

  A unique key, e.g. `Name`

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`value`

  Type: `const gchar*`

  A string.

  The argument can be `NULL`.
  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.