[Spice-devel] [PATCH spice-gtk 38/44] fixup! usb-redir: add implementation of emulated CD device
Frediano Ziglio
fziglio at redhat.com
Tue Jul 30 12:03:25 UTC 2019
---
src/usb-device-cd.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
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,
--
2.20.1
More information about the Spice-devel
mailing list