Changeset 0c224b2 in mainline
- Timestamp:
- 2011-07-12T10:32:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d5708d
- Parents:
- 2fe28ca1
- Location:
- uspace/lib/usbhost
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/batch.h
r2fe28ca1 r0c224b2 93 93 void usb_transfer_batch_call_in_and_dispose(usb_transfer_batch_t *instance); 94 94 void usb_transfer_batch_call_out_and_dispose(usb_transfer_batch_t *instance); 95 void usb_transfer_batch_finish _error(usb_transfer_batch_t *instance, int error);95 void usb_transfer_batch_finish(usb_transfer_batch_t *instance); 96 96 void usb_transfer_batch_dispose(usb_transfer_batch_t *instance); 97 97 98 static inline void usb_transfer_batch_finish(usb_transfer_batch_t *instance) 98 static inline void usb_transfer_batch_finish_error( 99 usb_transfer_batch_t *instance, int error) 99 100 { 100 101 assert(instance); 101 usb_transfer_batch_finish_error(instance, EOK); 102 instance->error = error; 103 usb_transfer_batch_finish(instance); 102 104 } 103 105 -
uspace/lib/usbhost/src/batch.c
r2fe28ca1 r0c224b2 105 105 * 106 106 */ 107 void usb_transfer_batch_finish _error(usb_transfer_batch_t *instance, int error)107 void usb_transfer_batch_finish(usb_transfer_batch_t *instance) 108 108 { 109 109 assert(instance); 110 110 assert(instance->ep); 111 111 assert(instance->next_step); 112 instance->error = error;113 112 endpoint_release(instance->ep); 114 113 instance->next_step(instance);
Note:
See TracChangeset
for help on using the changeset viewer.