From 4215730f0ac21c625effe50ba14fbf050dc991a8 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Mon, 24 Mar 2014 12:35:26 +0100 Subject: unifying: impl HID++ 2.0 DeviceName, adjust device info Set K800 to use HID++ 1.0; add a device_name field to store long device names for HID++ 2.0 devices. The device types constants are slightly different between HID++ 1.0 and HID++ 2.0, two constants are not implemented (and those will probably never be implemented). Signed-off-by: Peter Wu --- hw/usb/hid-logitech-dj.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 3e7fab9fa1..6a29b6639e 100644 --- a/hw/usb/hid-logitech-dj.h +++ b/hw/usb/hid-logitech-dj.h @@ -193,7 +193,8 @@ typedef struct { uint16_t protocol_version; /* HID++ protocol version */ uint16_t wireless_pid; uint32_t serial; - char name[15]; + char name[15]; /* short name for receiver */ + const char *device_name; /* long device name for HID++ 2.0 */ uint8_t usability_info; /* bits 0..3 power switch location */ uint32_t report_types; /* supported report types (e.g. mouse) */ -- cgit v1.2.1