Changes in uspace/lib/usb/src/hidparser.c [b53d3b7:96bfe76] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
rb53d3b7 r96bfe76 164 164 // store current usage path 165 165 report_item->usage_path = usage_path; 166 167 // new current usage path168 tmp_usage_path = usb_hid_report_path();169 166 170 // c opy oldpath to the new one171 usb_hid_report_path_clone(tmp_usage_path,usage_path);167 // clone path to the new one 168 tmp_usage_path = usb_hid_report_path_clone(usage_path); 172 169 173 170 // swap … … 796 793 } 797 794 798 int usb_hid_report_input_length(const usb_hid_report_parser_t *parser,795 size_t usb_hid_report_input_length(const usb_hid_report_parser_t *parser, 799 796 usb_hid_report_path_t *path, int flags) 800 797 { … … 949 946 break; 950 947 951 /* given path must be the end of the report one*/948 /* compare with only the end of path*/ 952 949 case USB_HID_PATH_COMPARE_END: 953 950 report_link = report_path->link.prev; … … 1019 1016 1020 1017 /** 1021 * 1022 */ 1023 int usb_hid_report_path_clone(usb_hid_report_path_t *new_usage_path, usb_hid_report_path_t *usage_path) 1018 * Clone content of given usage path to the new one 1019 * 1020 */ 1021 usb_hid_report_path_t *usb_hid_report_path_clone(usb_hid_report_path_t *usage_path) 1024 1022 { 1025 1023 usb_hid_report_usage_path_t *path_item; 1026 1024 link_t *path_link; 1027 1025 usb_hid_report_path_t *new_usage_path = usb_hid_report_path (); 1026 1027 if(new_usage_path == NULL){ 1028 return NULL; 1029 } 1028 1030 1029 1031 if(list_empty(&usage_path->link)){ 1030 return EOK;1032 return new_usage_path; 1031 1033 } 1032 1034 … … 1039 1041 } 1040 1042 1041 return EOK;1043 return new_usage_path; 1042 1044 } 1043 1045
Note:
See TracChangeset
for help on using the changeset viewer.