Fwupd.Device.set_protocol

### Method

# Fwupd Deviceset_protocol

#### Declaration [src]

    void
    fwupd_device_set_protocol (
      FwupdDevice* self,
      const gchar* protocol
    )

#### Description [src]

Sets the protocol name that is used to update the device.

Available since: | 1.3.6
Deprecated since: | 1.5.8
Use `fwupd_device_add_protocol()` instead.

Sets property | `Fwupd.Device:protocol`

#### Parameters

`protocol` | `const gchar*`
| The protocol name, e.g. `com.hughski.colorhug`
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.