- 時間撮記:
- 2014-10-15 下午12:34:18 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r53031 r53062 2827 2827 } 2828 2828 2829 HRESULT Console::attachUSBDevice(const com::Guid &aId )2829 HRESULT Console::attachUSBDevice(const com::Guid &aId, const com::Utf8Str &aCaptureFilename) 2830 2830 { 2831 2831 #ifdef VBOX_WITH_USB … … 2853 2853 2854 2854 /* Request the device capture */ 2855 return mControl->CaptureUSBDevice(Bstr(aId.toString()).raw() );2855 return mControl->CaptureUSBDevice(Bstr(aId.toString()).raw(), Bstr(aCaptureFilename).raw()); 2856 2856 2857 2857 #else /* !VBOX_WITH_USB */ … … 5271 5271 * @note Locks this object for writing. 5272 5272 */ 5273 HRESULT Console::i_onUSBDeviceAttach(IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs) 5273 HRESULT Console::i_onUSBDeviceAttach(IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs, 5274 const Utf8Str &aCaptureFilename) 5274 5275 { 5275 5276 #ifdef VBOX_WITH_USB … … 5309 5310 5310 5311 alock.release(); 5311 HRESULT rc = i_attachUSBDevice(aDevice, aMaskedIfs );5312 HRESULT rc = i_attachUSBDevice(aDevice, aMaskedIfs, aCaptureFilename); 5312 5313 if (FAILED(rc)) 5313 5314 { … … 8316 8317 * @note Synchronously calls EMT. 8317 8318 */ 8318 HRESULT Console::i_attachUSBDevice(IUSBDevice *aHostDevice, ULONG aMaskedIfs) 8319 HRESULT Console::i_attachUSBDevice(IUSBDevice *aHostDevice, ULONG aMaskedIfs, 8320 const Utf8Str &aCaptureFilename) 8319 8321 { 8320 8322 AssertReturn(aHostDevice, E_FAIL); … … 8365 8367 8366 8368 int vrc = VMR3ReqCallWaitU(ptrVM.rawUVM(), 0 /* idDstCpu (saved state, see #6232) */, 8367 (PFNRT)i_usbAttachCallback, 9,8369 (PFNRT)i_usbAttachCallback, 10, 8368 8370 this, ptrVM.rawUVM(), aHostDevice, uuid.raw(), fRemote, 8369 Address.c_str(), pvRemoteBackend, portVersion, aMaskedIfs); 8371 Address.c_str(), pvRemoteBackend, portVersion, aMaskedIfs, 8372 aCaptureFilename.isEmpty() ? NULL : aCaptureFilename.c_str()); 8370 8373 if (RT_SUCCESS(vrc)) 8371 8374 { … … 8418 8421 DECLCALLBACK(int) 8419 8422 Console::i_usbAttachCallback(Console *that, PUVM pUVM, IUSBDevice *aHostDevice, PCRTUUID aUuid, bool aRemote, 8420 const char *aAddress, void *pvRemoteBackend, USHORT aPortVersion, ULONG aMaskedIfs) 8423 const char *aAddress, void *pvRemoteBackend, USHORT aPortVersion, ULONG aMaskedIfs, 8424 const char *pszCaptureFilename) 8421 8425 { 8422 8426 LogFlowFuncEnter(); … … 8429 8433 aPortVersion == 3 ? VUSB_STDVER_30 : 8430 8434 aPortVersion == 2 ? VUSB_STDVER_11 : VUSB_STDVER_20, 8431 aMaskedIfs );8435 aMaskedIfs, pszCaptureFilename); 8432 8436 LogFlowFunc(("vrc=%Rrc\n", vrc)); 8433 8437 LogFlowFuncLeave(); … … 9053 9057 { 9054 9058 alock.release(); 9055 hrc = i_onUSBDeviceAttach(pUSBDevice, NULL, fMaskedIfs );9059 hrc = i_onUSBDeviceAttach(pUSBDevice, NULL, fMaskedIfs, Utf8Str()); 9056 9060 alock.acquire(); 9057 9061
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器