diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 12:35:26 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-24 12:35:26 +0100 |
commit | 4215730f0ac21c625effe50ba14fbf050dc991a8 (patch) | |
tree | c0c44b81ce2acdd4f7197243293febf3cfdb6acf /hw/usb/hid-logitech-dj.h | |
parent | 7249fb7b3ac3e05b604228314a48ad5703506c1d (diff) | |
download | qemu-4215730f0ac21c625effe50ba14fbf050dc991a8.tar.gz |
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 <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/hid-logitech-dj.h')
-rw-r--r-- | hw/usb/hid-logitech-dj.h | 3 |
1 files changed, 2 insertions, 1 deletions
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) */ |