third_party/virtualbox/src/VBox/Main/src-server/MachineImpl.cpp
/**
 *  Goes through the USB filters of the given machine to see if the given
 *  device matches any filter or not.
 *
 *  @note Locks the same as USBController::hasMatchingFilter() does.
 */
Goes through the USB filters of the given machine to see if the given
device matches any filter or not.

@note Locks the same as USBController::hasMatchingFilter() does.
Goes through the USB filters of the given machine to see if the given device matches any filter or not . @note Locks the same as USBController :: hasMatchingFilter () does .
HRESULT SessionMachine::runUSBDeviceFilters(const ComPtr<IUSBDevice> &aDevice,
                                            BOOL  *aMatched,
                                            ULONG *aMaskedInterfaces)
{
    LogFlowThisFunc(("\n"));
#ifdef VBOX_WITH_USB
    *aMatched = mUSBDeviceFilters->i_hasMatchingFilter(aDevice, aMaskedInterfaces);
#else
    NOREF(aDevice);
    NOREF(aMaskedInterfaces);
    *aMatched = FALSE;
#endif
    return S_OK;
}
HRESULT SessionMachine :: runUSBDeviceFilters ( const ComPtr < IUSBDevice > & aDevice , BOOL * aMatched , ULONG * aMaskedInterfaces ) { LogFlowThisFunc ( ( " \n " ) ) ; #ifdef VBOX_WITH_USB * aMatched = mUSBDeviceFilters -> i_hasMatchingFilter ( aDevice , aMaskedInterfaces ) ; #else NOREF ( aDevice ) ; NOREF ( aMaskedInterfaces ) ; * aMatched = FALSE ; #endif return S_OK ; }
Goes through the USB filters of the given machine to see if the given
  device matches any filter or not.
Goes through the USB filters of the given machine to see if the given device matches any filter or not .