[Spice-devel] [PATCH v7 14/14] UsbDeviceManager: Deprecate synchronous disconnection method
Dmitry Fleytman
dmitry at daynix.com
Tue Mar 8 14:06:01 UTC 2016
From: Dmitry Fleytman <dfleytma at redhat.com>
Asynchronous disconnection should be used instead.
Signed-off-by: Dmitry Fleytman <dfleytma at redhat.com>
---
src/usb-device-manager.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/usb-device-manager.h b/src/usb-device-manager.h
index a9a4f7a..6a8d0ac 100644
--- a/src/usb-device-manager.h
+++ b/src/usb-device-manager.h
@@ -130,8 +130,11 @@ gboolean spice_usb_device_manager_connect_device_finish(
gboolean spice_usb_device_manager_disconnect_device_finish(
SpiceUsbDeviceManager *self, GAsyncResult *res, GError **err);
+#ifndef SPICE_DISABLE_DEPRECATED
+SPICE_DEPRECATED
void spice_usb_device_manager_disconnect_device(SpiceUsbDeviceManager *manager,
SpiceUsbDevice *device);
+#endif
gboolean
spice_usb_device_manager_can_redirect_device(SpiceUsbDeviceManager *self,
--
2.5.0
More information about the Spice-devel
mailing list