[spice-gtk,38/44] fixup! usb-redir: add implementation of emulated CD device

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

Details

Message ID 20190730120331.17967-37-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.
---
 src/usb-device-cd.c | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/usb-device-cd.c b/src/usb-device-cd.c
index a2298b80..7ef5bca4 100644
--- a/src/usb-device-cd.c
+++ b/src/usb-device-cd.c
@@ -46,8 +46,7 @@ 
 #include "usb-device-cd.h"
 #include "cd-usb-bulk-msd.h"
 
-typedef struct SpiceCdLU
-{
+typedef struct SpiceCdLU {
     char *filename;
     GFile *file_object;
     GFileInputStream *stream;
@@ -69,14 +68,12 @@  typedef struct SpiceCdLU
 #define DVD_DEV_BLOCK_SIZE              0x800
 #define MAX_BULK_IN_REQUESTS            64
 
-struct BufferedBulkRead
-{
+struct BufferedBulkRead {
     struct usb_redir_bulk_packet_header hout;
     uint64_t id;
 };
 
-struct SpiceUsbEmulatedDevice
-{
+struct SpiceUsbEmulatedDevice {
     UsbDeviceOps dev_ops;
     SpiceUsbBackend *backend;
     SpiceUsbBackendDevice *parent;
@@ -92,7 +89,7 @@  struct SpiceUsbEmulatedDevice
     uint8_t  max_lun_index;
 };
 
-typedef SpiceUsbEmulatedDevice UsbCd;
+typedef struct SpiceUsbEmulatedDevice UsbCd;
 
 #ifndef G_OS_WIN32
 
@@ -406,8 +403,7 @@  static void usb_cd_unrealize(UsbCd *d)
 static gboolean usb_cd_get_descriptor(UsbCd *d, uint8_t type, uint8_t index,
                                       void **buffer, uint16_t *size)
 {
-    static struct libusb_device_descriptor desc =
-    {
+    static struct libusb_device_descriptor desc = {
         .bLength = 18,
         .bDescriptorType = LIBUSB_DT_DEVICE,
         .bcdUSB = USB2_BCD,