[spice-gtk,19/44] fixup! usb-redir: add files for SCSI and USB MSC implementation

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

Details

Message ID 20190730120331.17967-19-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.
Remove some constant from headers, put in the implementation
---
 src/cd-scsi.c | 3 +++
 src/cd-scsi.h | 4 ----
 2 files changed, 3 insertions(+), 4 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/cd-scsi.c b/src/cd-scsi.c
index b35dad57..715fe1c6 100644
--- a/src/cd-scsi.c
+++ b/src/cd-scsi.c
@@ -32,6 +32,9 @@ 
 #define SPICE_ERROR(fmt, ...) \
     do { SPICE_DEBUG("dev-scsi error: " fmt , ## __VA_ARGS__); } while (0)
 
+#define FIXED_SENSE_CURRENT 0x70
+#define FIXED_SENSE_LEN 18
+
 #define MAX_LUNS   32
 
 typedef struct CdScsiTarget CdScsiTarget;
diff --git a/src/cd-scsi.h b/src/cd-scsi.h
index 93c975a2..0fd7b90b 100644
--- a/src/cd-scsi.h
+++ b/src/cd-scsi.h
@@ -28,9 +28,6 @@ 
 #include "cd-usb-bulk-msd.h"
 #include "scsi-constants.h"
 
-#define FIXED_SENSE_CURRENT 0x70
-#define FIXED_SENSE_LEN 18
-
 #if defined(G_OS_WIN32)
 #include <winsock2.h>
 #include <windows.h>
@@ -47,7 +44,6 @@  typedef enum ScsiXferDir {
 } ScsiXferDir;
 
 #define SCSI_CDB_BUF_SIZE   16
-#define SCSI_SENSE_BUF_SIZE 64
 
 typedef enum CdScsiReqState {
     SCSI_REQ_IDLE = 0,