[Spice-devel] [PATCH spice-gtk 11/44] fixup! usb-redir: define interfaces to support emulated devices
Frediano Ziglio
fziglio at redhat.com
Tue Jul 30 12:03:00 UTC 2019
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(-)
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);
--
2.20.1
More information about the Spice-devel
mailing list