Method

FwupdDevicehas_protocol

Declaration [src]

gboolean
fwupd_device_has_protocol (
  FwupdDevice* self,
  const gchar* protocol
)

Description [src]

Finds out if the device has this specific protocol.

Available since:1.5.8

Parameters

protocol const gchar*
 

The ID, e.g. ‘USB:0x1234’

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

Return value

Returns: gboolean
 

TRUE if the ID is found.