diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-19 15:14:33 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-19 15:14:33 +0100 |
commit | 4e6cc45456993307d605dfe50b5e370ba93fac9d (patch) | |
tree | 49fff599fbac53ff9874f933cddc828f3445b3b3 /hw/usb/hid-logitech-dj.h | |
parent | 3a5922cc11f73269bfcd762997efc2c029a3b585 (diff) | |
download | qemu-4e6cc45456993307d605dfe50b5e370ba93fac9d.tar.gz |
unifying: rename input queue, fix error queue
Fix error queue name, rename input queue for clarity. Split input
and output queue for further work and NAK when there is no interrupt
data available.
Diffstat (limited to 'hw/usb/hid-logitech-dj.h')
-rw-r--r-- | hw/usb/hid-logitech-dj.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hw/usb/hid-logitech-dj.h b/hw/usb/hid-logitech-dj.h index 36b2c31e2e..bc4a044382 100644 --- a/hw/usb/hid-logitech-dj.h +++ b/hw/usb/hid-logitech-dj.h @@ -196,7 +196,12 @@ typedef struct USBLtunifyState { HidppMsg reports[16]; unsigned head; unsigned n; - } queue; + } input_queue; + struct { + HidppMsg reports[16]; + unsigned head; + unsigned n; + } output_queue; /* receiver error queue (to be send): drop if full */ struct { HidppMsgShort reports[2]; @@ -204,7 +209,7 @@ typedef struct USBLtunifyState { unsigned n; } error_queue; LHidReceiver receiver; - LHidDevice devices[MAX_DEVICES]; + LHidDevice devices[MAX_DEVICES]; /* paired devices */ } USBLtunifyState; |