Ignore:
Timestamp:
2011-06-19T14:38:59Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
74464e8
Parents:
1d1bb0f
Message:

Separate list_t typedef from link_t (user-space part).

  • list_t represents lists
  • Use list_first(), list_last(), list_empty() where appropriate
  • Use list_foreach() where possible
  • assert_link_not_used()
  • usb_hid_report_path_free() shall not unlink the path, caller must do it
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/include/usb/hid/hidtypes.h

    r1d1bb0f rb72efe8  
    9595        int report_count;
    9696
    97         /** Head of linked list of description of reports. */
    98         link_t reports;
    99 
    100         /** Head of linked list of all used usage/collection paths. */
    101         link_t collection_paths;
     97        /** List of description of reports. */
     98        list_t reports; /* of usb_hid_report_description_t */
     99
     100        /** List of all used usage/collection paths. */
     101        list_t collection_paths;
    102102
    103103        /** Length of list of usage paths. */
     
    129129        size_t item_length;
    130130       
    131         /** Linked list of report items in report */
    132         link_t report_items;
    133 
    134         /** Linked list of descriptions. */
    135         link_t link;
     131        /** List of report items in report */
     132        list_t report_items;
     133
     134        /** Link to usb_hid_report_t.reports list. */
     135        link_t reports_link;
    136136} usb_hid_report_description_t;
    137137/*---------------------------------------------------------------------------*/
     
    198198        int32_t value;
    199199
    200         /** List to another report items */
    201         link_t link;
     200        /** Link to usb_hid_report_description_t.report_items list */
     201        link_t ritems_link;
    202202} usb_hid_report_field_t;
    203203
Note: See TracChangeset for help on using the changeset viewer.