allocate_device_for_file_descriptor


Description:

[ Version ( since = "0.40" ) ]
public UsbDevice? allocate_device_for_file_descriptor (int file_descriptor) throws Error

Allocates a SpiceUsbDevice instance for the specified file descriptor.

Parameters:

this

the UsbDeviceManager manager.

file_descriptor

an open file descriptor for the USB device.

Returns:

an allocated SpiceUsbDevice instance or null in case of failure.