Lines Matching defs:aMachine

160  * @param   aMachine        The machine to attach the device to.
168 HRESULT USBProxyService::captureDeviceForVM(SessionMachine *aMachine, IN_GUID aId, const com::Utf8Str &aCaptureFilename)
170 ComAssertRet(aMachine, E_INVALIDARG);
185 return pHostDevice->i_requestCaptureForVM(aMachine, true /* aSetError */, aCaptureFilename);
195 * @param aMachine The machine which is sending the notification.
210 HRESULT USBProxyService::detachDeviceFromVM(SessionMachine *aMachine, IN_GUID aId, bool aDone)
212 LogFlowThisFunc(("aMachine=%p{%s} aId={%RTuuid} aDone=%RTbool\n",
213 aMachine,
214 aMachine->i_getName().c_str(),
235 HRESULT hrc = pHostDevice->i_onDetachFromVM(aMachine, aDone, &fRunFilters);
246 HRESULT hrc2 = runAllFiltersOnDevice(pHostDevice, llOpenedMachines, aMachine);
266 * @param aMachine The machine to capture devices for.
273 HRESULT USBProxyService::autoCaptureDevicesForVM(SessionMachine *aMachine)
275 LogFlowThisFunc(("aMachine=%p{%s}\n",
276 aMachine,
277 aMachine->i_getName().c_str()));
298 runMachineFilters(aMachine, device);
320 * @param aMachine The machine to detach devices from.
327 HRESULT USBProxyService::detachAllDevicesFromVM(SessionMachine *aMachine, bool aDone, bool aAbnormal)
349 if (pHostDevice->i_getMachine() == aMachine)
355 HRESULT hrc = pHostDevice->i_onDetachFromVM(aMachine, aDone, &fRunFilters, aAbnormal);
364 HRESULT hrc2 = runAllFiltersOnDevice(pHostDevice, llOpenedMachines, aMachine);
379 * belonging to \a aMachine. If a global ignore filter matched or if
504 * @param aMachine Machine whose filters are to be run.
510 bool USBProxyService::runMachineFilters(SessionMachine *aMachine, ComObjPtr<HostUSBDevice> &aDevice)
512 LogFlowThisFunc(("{%s} aMachine=%p \n", aDevice->i_getName().c_str(), aMachine));
517 AssertReturn(aMachine, false);
519 AssertReturn(!aMachine->isWriteLockOnCurrentThread(), false);
527 if (aMachine->i_hasMatchingUSBFilter(aDevice, &ulMaskedIfs))
530 HRESULT hrc = aDevice->i_requestCaptureForVM(aMachine, false /* aSetError */, Utf8Str(), ulMaskedIfs);