Method

GUsbContextfind_by_platform_id

Declaration

GUsbDevice*
g_usb_context_find_by_platform_id (
  GUsbContext* self,
  const gchar* platform_id,
  GError** error
)

Description

Finds a device based on its platform id value.

Available since:0.2.4

Parameters

platform_id const gchar*
 

A platform id, e.g. “usb:00:03:03:02”

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GUsbDevice
 

A new GUsbDevice, or NULL if not found.

 The caller of the method takes ownership of the data, and is responsible for freeing it.