Changeset e24e7b1 in mainline
- Timestamp:
- 2011-03-01T22:46:14Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- da3965e
- Parents:
- 19a1800
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hidparser.c
r19a1800 re24e7b1 37 37 #include <stdio.h> 38 38 #include <adt/list.h> 39 #include <malloc.h> 40 #include <mem.h> 39 41 40 42 #define USB_HID_NEW_REPORT_ITEM 0 … … 50 52 usb_hid_report_item_t *report_item); 51 53 52 void usb_hid_descriptor_print_list(link_t *head) 54 void usb_hid_descriptor_print_list(link_t *head); 53 55 int usb_hid_report_reset_local_items(); 54 void usb_hid_free_report_list(link_t * list);56 void usb_hid_free_report_list(link_t *head); 55 57 56 58 /** … … 226 228 227 229 if (size != 8) { 228 return ERANGE;230 return -1; //ERANGE; 229 231 } 230 232 … … 425 427 report_item->string_maximum = usb_hid_report_tag_data_int32(data,item_size); 426 428 break; 429 /* 427 430 case USB_HID_REPORT_TAG_DELIMITER: 428 431 report_item->delimiter = usb_hid_report_tag_data_int32(data,item_size); 429 432 break; 430 433 */ 431 434 default: 432 435 return -1; //TODO ERROR CODE INVALID LOCAL TAG NOW IS ONLY UNSUPPORTED … … 514 517 * 515 518 */ 516 void usb_hid_free_report_list(link_t *list) 517 { 519 void usb_hid_free_report_list(link_t *head) 520 { 521 return; 522 /* 518 523 usb_hid_report_item_t *report_item; 519 524 link_t *item; 520 525 521 526 if(head == NULL || list_empty(head)) { 522 return EOK;527 return; 523 528 } 524 529 … … 527 532 free(list_get_instance(item,usb_hid_report_item_t, link)); 528 533 } 534 535 return; 536 */ 529 537 } 530 538
Note:
See TracChangeset
for help on using the changeset viewer.