third_party/virtualbox/src/VBox/Devices/USB/VUSBUrb.cpp
/**
 * Callback for dealing with device reset.
 */
Callback for dealing with device reset.
Callback for dealing with device reset .
void vusbMsgResetExtraData(PVUSBCTRLEXTRA pExtra)
{
    if (!pExtra)
        return;
    pExtra->enmStage = CTLSTAGE_SETUP;
    if (pExtra->Urb.enmState != VUSBURBSTATE_CANCELLED)
    {
        pExtra->Urb.enmState = VUSBURBSTATE_ALLOCATED;
        pExtra->Urb.fCompleting = false;
    }
}
void vusbMsgResetExtraData ( PVUSBCTRLEXTRA pExtra ) { if ( ! pExtra ) return ; pExtra -> enmStage = CTLSTAGE_SETUP ; if ( pExtra -> Urb . enmState != VUSBURBSTATE_CANCELLED ) { pExtra -> Urb . enmState = VUSBURBSTATE_ALLOCATED ; pExtra -> Urb . fCompleting = false ; } }
Callback for dealing with device reset.
Callback for dealing with device reset .