Changeset 9783496 in mainline
- Timestamp:
- 2011-04-06T16:23:24Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 90b9ab5
- Parents:
- 9262571
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/host/usb_endpoint_manager.h
r9262571 r9783496 64 64 int usb_endpoint_manager_register_ep(usb_endpoint_manager_t *instance, 65 65 usb_address_t address, usb_endpoint_t ep, usb_direction_t direction, 66 void *data, void (*data_remove_callback)(void* data, void* arg), void *arg, 67 size_t bw); 66 void *data, void (*data_remove_callback)(void* data), size_t bw); 68 67 69 68 int usb_endpoint_manager_register_ep_wait(usb_endpoint_manager_t *instance, -
uspace/lib/usb/src/host/usb_endpoint_manager.c
r9262571 r9783496 48 48 size_t bw; 49 49 void *data; 50 void (*data_remove_callback)(void* data, void* arg); 51 void *arg; 50 void (*data_remove_callback)(void* data); 52 51 } ep_t; 53 52 /*----------------------------------------------------------------------------*/ … … 82 81 ep_t *ep = 83 82 hash_table_get_instance(item, ep_t, link); 84 ep->data_remove_callback(ep->data , ep->arg);83 ep->data_remove_callback(ep->data); 85 84 free(ep); 86 85 } … … 147 146 int usb_endpoint_manager_register_ep(usb_endpoint_manager_t *instance, 148 147 usb_address_t address, usb_endpoint_t endpoint, usb_direction_t direction, 149 void *data, void (*data_remove_callback)(void* data, void* arg), void *arg, 150 size_t bw) 148 void *data, void (*data_remove_callback)(void* data), size_t bw) 151 149 { 152 150 assert(instance);
Note:
See TracChangeset
for help on using the changeset viewer.