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

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

Details

Message ID 20190730120331.17967-12-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:03 p.m.
Rename spice_usb_backend_create_device.
Make clear is allocating an emulated device.
---
 src/usb-backend.c   | 8 ++++----
 src/usb-emulation.h | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/usb-backend.c b/src/usb-backend.c
index aa843465..a6c7b199 100644
--- a/src/usb-backend.c
+++ b/src/usb-backend.c
@@ -906,10 +906,10 @@  void spice_usb_backend_device_eject(SpiceUsbBackend *be, SpiceUsbBackendDevice *
 }
 
 SpiceUsbBackendDevice*
-spice_usb_backend_create_device(SpiceUsbBackend *be,
-                                SpiceUsbEmulatedDeviceCreate create_proc,
-                                void *create_params,
-                                GError **err)
+spice_usb_backend_create_emulated_device(SpiceUsbBackend *be,
+                                         SpiceUsbEmulatedDeviceCreate create_proc,
+                                         void *create_params,
+                                         GError **err)
 {
     SpiceUsbEmulatedDevice *edev;
     SpiceUsbBackendDevice *dev;
diff --git a/src/usb-emulation.h b/src/usb-emulation.h
index 6ff57b80..9e626a24 100644
--- a/src/usb-emulation.h
+++ b/src/usb-emulation.h
@@ -81,10 +81,10 @@  static inline const UsbDeviceOps *device_ops(SpiceUsbEmulatedDevice *dev)
 }
 
 SpiceUsbBackendDevice*
-spice_usb_backend_create_device(SpiceUsbBackend *be,
-                                SpiceUsbEmulatedDeviceCreate create_proc,
-                                void *create_params,
-                                GError **err);
+spice_usb_backend_create_emulated_device(SpiceUsbBackend *be,
+                                         SpiceUsbEmulatedDeviceCreate create_proc,
+                                         void *create_params,
+                                         GError **err);
 void spice_usb_backend_device_eject(SpiceUsbBackend *be, SpiceUsbBackendDevice *device);
 void spice_usb_backend_device_report_change(SpiceUsbBackend *be, SpiceUsbBackendDevice *device);