GUsb.DeviceList.find_by_vid_pid

### Method

# GUsb DeviceListfind_by_vid_pid

#### Declaration

    GUsbDevice*
    g_usb_device_list_find_by_vid_pid (
      GUsbDeviceList* self,
      guint16 vid,
      guint16 pid,
      GError** error
    )

#### Description

Finds a device based on its bus and address values.

Available since: | 0.1.0

#### 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.