[Spice-devel] [PATCH spice-gtk 10/44] fixup! usb-redir: define interfaces to support emulated devices

Frediano Ziglio fziglio at redhat.com
Tue Jul 30 12:02:59 UTC 2019


Rename delete to unrealize as discussed on ML
---
 src/usb-backend.c   | 2 +-
 src/usb-emulation.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/usb-backend.c b/src/usb-backend.c
index 75ce12ba..aa843465 100644
--- a/src/usb-backend.c
+++ b/src/usb-backend.c
@@ -545,7 +545,7 @@ void spice_usb_backend_device_unref(SpiceUsbBackendDevice *dev)
             LOUD_DEBUG("%s freeing %p (libusb %p)", __FUNCTION__, dev, dev->libusb_device);
         }
         if (dev->edev) {
-            device_ops(dev->edev)->delete(dev->edev);
+            device_ops(dev->edev)->unrealize(dev->edev);
         }
         g_free(dev);
     }
diff --git a/src/usb-emulation.h b/src/usb-emulation.h
index 9ea819a4..6ff57b80 100644
--- a/src/usb-emulation.h
+++ b/src/usb-emulation.h
@@ -72,7 +72,7 @@ typedef struct UsbDeviceOps {
                             struct usb_redir_bulk_packet_header *bulk_header);
     void (*cancel_request)(SpiceUsbEmulatedDevice *device, uint64_t id);
     void (*detach)(SpiceUsbEmulatedDevice *device);
-    void (*delete)(SpiceUsbEmulatedDevice *device);
+    void (*unrealize)(SpiceUsbEmulatedDevice *device);
 } UsbDeviceOps;
 
 static inline const UsbDeviceOps *device_ops(SpiceUsbEmulatedDevice *dev)
-- 
2.20.1



More information about the Spice-devel mailing list