Changeset c2245a3 in mainline for uspace/lib/usbhost/src/usb_endpoint_manager.c
- Timestamp:
- 2011-11-10T20:03:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa76f81
- Parents:
- 27ca3a3 (diff), 747ef72 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/src/usb_endpoint_manager.c
r27ca3a3 rc2245a3 384 384 return EOK; 385 385 } 386 /*----------------------------------------------------------------------------*/ 387 void usb_endpoint_manager_remove_address(usb_endpoint_manager_t *instance, 388 usb_address_t address, void (*callback)(endpoint_t *, void *), void *arg) 389 { 390 assert(address >= 0); 391 assert(instance); 392 fibril_mutex_lock(&instance->guard); 393 list_foreach(*get_list(instance, address), iterator) { 394 endpoint_t *ep = endpoint_get_instance(iterator); 395 if (ep->address == address) { 396 iterator = iterator->next; 397 list_remove(&ep->link); 398 if (callback) 399 callback(ep, arg); 400 endpoint_destroy(ep); 401 } 402 } 403 fibril_mutex_unlock(&instance->guard); 404 }
Note:
See TracChangeset
for help on using the changeset viewer.