diff options
Diffstat (limited to 'include/hw/usb.h')
-rw-r--r-- | include/hw/usb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/usb.h b/include/hw/usb.h index 163fe0490b..847c9dec7f 100644 --- a/include/hw/usb.h +++ b/include/hw/usb.h @@ -235,7 +235,7 @@ struct USBDevice { uint8_t addr; char product_desc[32]; int auto_attach; - int attached; + bool attached; int32_t state; uint8_t setup_buf[8]; @@ -347,6 +347,7 @@ typedef struct USBDeviceClass { const char *product_desc; const USBDesc *usb_desc; + bool attached_settable; } USBDeviceClass; typedef struct USBPortOps { |