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

Submitted by Frediano Ziglio on July 30, 2019, 12:02 p.m.

Details

Message ID 20190730120331.17967-11-fziglio@redhat.com
State Superseded
Headers show
Series "Follow ups for CD emulation patch series" ( rev: 1 ) in Spice

Not browsing as part of any series.

Commit Message

Frediano Ziglio July 30, 2019, 12:02 p.m.
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(-)

Patch hide | download patch | download mbox

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)