Changeset 75583 in vbox for trunk/src/VBox/Devices/USB/usbip
- Timestamp:
- Nov 19, 2018 5:17:45 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 126751
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/USB/usbip/USBProxyDevice-usbip.cpp
r75582 r75583 575 575 576 576 /** 577 * Converts a USB/IP status code to a VBox status code.578 *579 * @returns VUSB status code.580 * @param i32Status The USB/IP status code from the reply.581 */582 DECLINLINE(int) usbProxyUsbIpStatusConvertFromStatus(int32_t i32Status)583 {584 if (RT_LIKELY( i32Status == USBIP_STATUS_SUCCESS585 || i32Status == USBIP_STATUS_SHORT_READ))586 return VINF_SUCCESS;587 588 switch (i32Status)589 {590 case USBIP_STATUS_PIPE_STALLED:591 return VINF_SUCCESS;592 case USBIP_STATUS_URB_UNLINKED:593 return VERR_TRY_AGAIN;594 default:595 LogFlowFunc(("i32Status=%d\n", i32Status));596 return VERR_INVALID_STATE;597 }598 /* not reached */599 }600 601 /**602 577 * Converts a USB/IP status code to a VUSB status code. 603 578 *
Note:
See TracChangeset
for help on using the changeset viewer.