third_party/virtualbox/src/VBox/Main/src-server/MachineImpl.cpp
/**
 *  Inserts all machine filters to the USB proxy service and then calls
 *  Host::autoCaptureUSBDevices().
 *
 *  Called by Console from the VM process upon VM startup.
 *
 *  @note Locks what called methods lock.
 */
Inserts all machine filters to the USB proxy service and then calls
Host::autoCaptureUSBDevices().

Called by Console from the VM process upon VM startup.

@note Locks what called methods lock.
Inserts all machine filters to the USB proxy service and then calls Host :: autoCaptureUSBDevices () . Called by Console from the VM process upon VM startup . @note Locks what called methods lock .
HRESULT SessionMachine::autoCaptureUSBDevices()
{
    LogFlowThisFunc(("\n"));
#ifdef VBOX_WITH_USB
    HRESULT rc = mUSBDeviceFilters->i_notifyProxy(true );
    AssertComRC(rc);
    NOREF(rc);
    USBProxyService *service = mParent->i_host()->i_usbProxyService();
    AssertReturn(service, E_FAIL);
    return service->autoCaptureDevicesForVM(this);
#else
    return S_OK;
#endif
}
HRESULT SessionMachine :: autoCaptureUSBDevices ( ) { LogFlowThisFunc ( ( " \n " ) ) ; #ifdef VBOX_WITH_USB HRESULT rc = mUSBDeviceFilters -> i_notifyProxy ( true ) ; AssertComRC ( rc ) ; NOREF ( rc ) ; USBProxyService * service = mParent -> i_host ( ) -> i_usbProxyService ( ) ; AssertReturn ( service , E_FAIL ) ; return service -> autoCaptureDevicesForVM ( this ) ; #else return S_OK ; #endif }
Inserts all machine filters to the USB proxy service and then calls
  Host::autoCaptureUSBDevices().
Inserts all machine filters to the USB proxy service and then calls Host :: autoCaptureUSBDevices () .
/* aInsertFilters */