Changeset b53d3b7 in mainline for uspace/drv/usbhid/kbddev.c
- Timestamp:
- 2011-03-25T13:40:00Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c40822, 96bfe76
- Parents:
- 55e388a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/kbddev.c
r55e388a1 rb53d3b7 585 585 // int rc = usb_hid_boot_keyboard_input_report(buffer, actual_size, 586 586 // callbacks, kbd_dev); 587 usb_hid_report_path_t *path = usb_hid_report_path(); 588 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 589 587 590 int rc = usb_hid_parse_report(kbd_dev->hid_dev->parser, buffer, 588 actual_size, callbacks, kbd_dev); 591 actual_size, path, USB_HID_PATH_COMPARE_STRICT, callbacks, kbd_dev); 592 593 usb_hid_report_path_free (path); 589 594 590 595 if (rc != EOK) { … … 694 699 // kbd_dev->key_count = BOOTP_REPORT_SIZE; 695 700 696 usb_hid_report_path_t path; 697 path.usage_page = USB_HIDUT_PAGE_KEYBOARD; 701 usb_hid_report_path_t *path; 702 path = usb_hid_report_path(); 703 usb_hid_report_path_append_item(path, USB_HIDUT_PAGE_KEYBOARD, 0); 698 704 kbd_dev->key_count = usb_hid_report_input_length( 699 kbd_dev->hid_dev->parser, &path); 705 kbd_dev->hid_dev->parser, path, USB_HID_PATH_COMPARE_STRICT); 706 usb_hid_report_path_free (path); 700 707 701 708 usb_log_debug("Size of the input report: %zu\n", kbd_dev->key_count);
Note:
See TracChangeset
for help on using the changeset viewer.