Changeset b7fd2a0 in mainline for uspace/lib/usbvirt/src/transfer.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/transfer.c
r36f0738 rb7fd2a0 50 50 * @return Error code. 51 51 */ 52 static int usbvirt_control_transfer(usbvirt_device_t *dev,52 static errno_t usbvirt_control_transfer(usbvirt_device_t *dev, 53 53 const void *setup, size_t setup_size, 54 54 void *data, size_t data_size, size_t *data_size_sent) … … 65 65 } 66 66 67 int rc;67 errno_t rc; 68 68 69 69 /* Run user handler first. */ … … 100 100 * @return Error code. 101 101 */ 102 int usbvirt_control_write(usbvirt_device_t *dev, const void *setup,102 errno_t usbvirt_control_write(usbvirt_device_t *dev, const void *setup, 103 103 size_t setup_size, void *data, size_t data_size) 104 104 { … … 119 119 * @return Error code. 120 120 */ 121 int usbvirt_control_read(usbvirt_device_t *dev, const void *setup, size_t setup_size,121 errno_t usbvirt_control_read(usbvirt_device_t *dev, const void *setup, size_t setup_size, 122 122 void *data, size_t data_size, size_t *data_size_sent) 123 123 { … … 135 135 * @return Error code. 136 136 */ 137 int usbvirt_data_out(usbvirt_device_t *dev, usb_transfer_type_t transf_type,137 errno_t usbvirt_data_out(usbvirt_device_t *dev, usb_transfer_type_t transf_type, 138 138 usb_endpoint_t endpoint, const void *data, size_t data_size) 139 139 { … … 145 145 } 146 146 147 int rc = dev->ops->data_out[endpoint](dev, endpoint, transf_type,147 errno_t rc = dev->ops->data_out[endpoint](dev, endpoint, transf_type, 148 148 data, data_size); 149 149 … … 161 161 * @return Error code. 162 162 */ 163 int usbvirt_data_in(usbvirt_device_t *dev, usb_transfer_type_t transf_type,163 errno_t usbvirt_data_in(usbvirt_device_t *dev, usb_transfer_type_t transf_type, 164 164 usb_endpoint_t endpoint, void *data, size_t data_size, size_t *data_size_sent) 165 165 { … … 172 172 173 173 size_t data_size_sent_tmp; 174 int rc = dev->ops->data_in[endpoint](dev, endpoint, transf_type,174 errno_t rc = dev->ops->data_in[endpoint](dev, endpoint, transf_type, 175 175 data, data_size, &data_size_sent_tmp); 176 176
Note:
See TracChangeset
for help on using the changeset viewer.