Changeset 28046 in vbox
- Timestamp:
- Apr 7, 2010 12:46:12 PM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r28005 r28046 1271 1271 } 1272 1272 1273 /** @todo this method should not be public */1274 1273 STDMETHODIMP Machine::COMSETTER(MemoryBalloonSize)(ULONG memoryBalloonSize) 1275 1274 { … … 1291 1290 mHWData.backup(); 1292 1291 mHWData->mMemoryBalloonSize = memoryBalloonSize; 1292 1293 /* Propagate the balloon change to the guest if there's an open session. */ 1294 if (mData->mSession.mState != SessionState_Open) 1295 { 1296 ComPtr<IInternalSessionControl> directControl; 1297 1298 int ret = getDirectControl(&directControl); 1299 if (ret == S_OK) 1300 { 1301 ComPtr<IConsole> mConsole = NULL; 1302 ComPtr<IGuest> mGuest = NULL; 1303 1304 /* get the associated console; this is a remote call (!) */ 1305 ret = directControl->GetRemoteConsole(mConsole.asOutParam()); 1306 if (ret == S_OK) 1307 { 1308 ret = mConsole->COMGETTER(Guest)(mGuest.asOutParam()); 1309 if (ret == S_OK) 1310 mGuest->COMSETTER(MemoryBalloonSize)(memoryBalloonSize); 1311 } 1312 } 1313 } 1293 1314 1294 1315 return S_OK; -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r28036 r28046 4346 4346 4347 4347 <attribute name="memoryBalloonSize" type="unsigned long"> 4348 <desc> Initial memory balloon size in megabytes.</desc>4348 <desc>Memory balloon size in megabytes.</desc> 4349 4349 </attribute> 4350 4350 … … 8415 8415 8416 8416 <attribute name="memoryBalloonSize" type="unsigned long"> 8417 <desc>Guest system memory balloon size in megabytes .</desc>8417 <desc>Guest system memory balloon size in megabytes (transient property).</desc> 8418 8418 </attribute> 8419 8419
Note:
See TracChangeset
for help on using the changeset viewer.