[Spice-devel] [PATCH spice-gtk v2 4/5] doc: Describe spice_usb_device_manager_disconnect_device_async

Pavel Grunt pgrunt at redhat.com
Wed May 10 10:49:09 UTC 2017


---
 src/usb-device-manager.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/usb-device-manager.c b/src/usb-device-manager.c
index 66f0eb5..bbe2391 100644
--- a/src/usb-device-manager.c
+++ b/src/usb-device-manager.c
@@ -1609,6 +1609,20 @@ void _disconnect_device_async_cb(GObject *gobject,
 }
 #endif
 
+/**
+ * spice_usb_device_manager_disconnect_device_async:
+ * @self: the #SpiceUsbDeviceManager manager.
+ * @device: a connected #SpiceUsbDevice to disconnect.
+ * @cancellable: (nullable): optional #GCancellable object, %NULL to ignore.
+ * @callback: (scope async): a #GAsyncReadyCallback to call when the request is satisfied.
+ * @user_data: (closure): the data to pass to @callback.
+ *
+ * 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.
+ *
+ * Since: 0.32
+ */
 void spice_usb_device_manager_disconnect_device_async(SpiceUsbDeviceManager *self,
                                                       SpiceUsbDevice *device,
                                                       GCancellable *cancellable,
-- 
2.12.2



More information about the Spice-devel mailing list