Method

GUsbContextfind_by_bus_address

Declaration

GUsbDevice*
g_usb_context_find_by_bus_address (
  GUsbContext* self,
  guint8 bus,
  guint8 address,
  GError** error
)

Description

Finds a device based on its bus and address values.

Available since:0.2.2

Parameters

bus guint8
 

A bus number.

address guint8
 

A bus address.

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.