SpiceClientGLib.UsbDevice

Fields

None

Methods

get_description (format)

get_libusb_device ()

Details

class SpiceClientGLib.UsbDevice

The SpiceClientGLib.UsbDevice struct is opaque and cannot be accessed directly.

get_description(format)
Parameters:

format (str or None) – an optional printf() format string with positional parameters

Returns:

a newly-allocated string holding the description, or None if failed

Return type:

str

Get a string describing the device which is suitable as a description of the device for the end user. The returned string should be freed with GLib.free() when no longer needed.

The format positional parameters are the following:

\%s manufacturer

\%s product

\%s descriptor (a [vendor_id:product_id] string)

\%d bus

\%d address

(the default format string is “\%s \%s \%s at \%d-\%d”)

get_libusb_device()
Returns:

the %libusb_device associated to SpiceClientGLib.UsbDevice.

Return type:

object or None

Finds the %libusb_device associated with the self.

New in version 0.27.