Changeset 45600 in vbox
- Timestamp:
- Apr 18, 2013 9:58:31 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplExport.cpp
r45367 r45600 87 87 pNewDesc->m->pMachine = this; 88 88 89 // now fill it with description items 90 Bstr bstrName1; 91 Bstr bstrDescription; 92 Bstr bstrGuestOSType; 93 uint32_t cCPUs; 94 uint32_t ulMemSizeMB; 89 // first, call the COM methods, as they request locks 90 ComPtr<IUSBController> pUsbController; 91 rc = COMGETTER(USBController)(pUsbController.asOutParam()); 95 92 BOOL fUSBEnabled; 96 BOOL fAudioEnabled;97 AudioControllerType_T audioController;98 99 ComPtr<IUSBController> pUsbController;100 ComPtr<IAudioAdapter> pAudioAdapter;101 102 // first, call the COM methods, as they request locks103 rc = COMGETTER(USBController)(pUsbController.asOutParam());104 93 if (FAILED(rc)) 105 94 fUSBEnabled = false; 106 95 else 96 { 107 97 rc = pUsbController->COMGETTER(Enabled)(&fUSBEnabled); 98 if (FAILED(rc)) throw rc; 99 } 108 100 109 101 // request the machine lock while accessing internal members 110 102 AutoReadLock alock1(this COMMA_LOCKVAL_SRC_POS); 111 103 112 pAudioAdapter = mAudioAdapter; 104 ComPtr<IAudioAdapter> pAudioAdapter = mAudioAdapter; 105 BOOL fAudioEnabled; 113 106 rc = pAudioAdapter->COMGETTER(Enabled)(&fAudioEnabled); 114 107 if (FAILED(rc)) throw rc; 108 AudioControllerType_T audioController; 115 109 rc = pAudioAdapter->COMGETTER(AudioController)(&audioController); 116 110 if (FAILED(rc)) throw rc; … … 123 117 Utf8Str strOsTypeVBox = mUserData->s.strOsType; 124 118 // CPU count 125 cCPUs = mHWData->mCPUCount;119 uint32_t cCPUs = mHWData->mCPUCount; 126 120 // memory size in MB 127 u lMemSizeMB = mHWData->mMemorySize;121 uint32_t ulMemSizeMB = mHWData->mMemorySize; 128 122 // VRAM size? 129 123 // BIOS settings?
Note:
See TracChangeset
for help on using the changeset viewer.