From 4e6cc45456993307d605dfe50b5e370ba93fac9d Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 19 Mar 2014 15:14:33 +0100 Subject: 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. --- hw/usb/hid-logitech-dj.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'hw/usb/hid-logitech-dj.h') 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; -- cgit v1.2.1