Changeset 53062 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Oct 15, 2014 12:34:18 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 96564
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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 -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r53012 r53062 3955 3955 RTUuidCreate(&UsbMsd.mUuid); 3956 3956 UsbMsd.iPort = uInstance; 3957 rc = PDMR3UsbCreateEmulatedDevice(pUVM, pcszDevice, pCtlInst, &UsbMsd.mUuid );3957 rc = PDMR3UsbCreateEmulatedDevice(pUVM, pcszDevice, pCtlInst, &UsbMsd.mUuid, NULL); 3958 3958 if (RT_SUCCESS(rc)) 3959 3959 mUSBStorageDevices.push_back(UsbMsd); -
trunk/src/VBox/Main/src-client/EmulatedUSBImpl.cpp
r50580 r53062 171 171 172 172 /* pInstance will be used by PDM and deallocated on error. */ 173 rc = PDMR3UsbCreateEmulatedDevice(pUVM, "Webcam", pInstance, &pThis->mUuid );173 rc = PDMR3UsbCreateEmulatedDevice(pUVM, "Webcam", pInstance, &pThis->mUuid, NULL); 174 174 LogRelFlowFunc(("PDMR3UsbCreateEmulatedDevice %Rrc\n", rc)); 175 175 return rc; -
trunk/src/VBox/Main/src-client/SessionImpl.cpp
r52481 r53062 730 730 HRESULT Session::onUSBDeviceAttach(const ComPtr<IUSBDevice> &aDevice, 731 731 const ComPtr<IVirtualBoxErrorInfo> &aError, 732 ULONG aMaskedInterfaces) 733 { 734 LogFlowThisFunc(("\n")); 735 736 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 737 AssertReturn(mState == SessionState_Locked, VBOX_E_INVALID_VM_STATE); 738 AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE); 739 #ifndef VBOX_COM_INPROC_API_CLIENT 740 AssertReturn(mConsole, VBOX_E_INVALID_OBJECT_STATE); 741 742 return mConsole->i_onUSBDeviceAttach(aDevice, aError, aMaskedInterfaces); 732 ULONG aMaskedInterfaces, 733 const com::Utf8Str &aCaptureFilename) 734 { 735 LogFlowThisFunc(("\n")); 736 737 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 738 AssertReturn(mState == SessionState_Locked, VBOX_E_INVALID_VM_STATE); 739 AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE); 740 #ifndef VBOX_COM_INPROC_API_CLIENT 741 AssertReturn(mConsole, VBOX_E_INVALID_OBJECT_STATE); 742 743 return mConsole->i_onUSBDeviceAttach(aDevice, aError, aMaskedInterfaces, aCaptureFilename); 743 744 #else 744 745 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.