Method
SpiceClientGLibUsbDeviceManagerdisconnect_device_async
since: 0.32
Declaration [src]
void
spice_usb_device_manager_disconnect_device_async (
SpiceUsbDeviceManager* manager,
SpiceUsbDevice* device,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously disconnects the device. When completed, callback will be called.
Then it is possible to call spice_usb_device_manager_disconnect_device_finish()
to get the result of the operation.
Available since: 0.32
This method completes asynchronously. Use spice_usb_device_manager_disconnect_device_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
device-
Type:
SpiceUsbDeviceA connected
SpiceUsbDeviceto disconnect.The data is owned by the caller of the method. cancellable-
Type:
GCancellableOptional
GCancellableobject,NULLto ignore.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto call when the request is satisfied.The argument can be NULL. user_data-
Type:
gpointerThe data to pass to
callback.The argument can be NULL.The data is owned by the caller of the method.