Method

GUsbContextfind_by_vid_pid

Declaration

GUsbDevice*
g_usb_context_find_by_vid_pid (
  GUsbContext* self,
  guint16 vid,
  guint16 pid,
  GError** error
)

Description

Finds a device based on its bus and address values.

Available since:0.2.2

Parameters

vid guint16
 

A vendor ID.

pid guint16
 

A product ID.

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.