- 時間撮記:
- 2014-6-12 下午04:46:20 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/VMMDevInterface.cpp
r51436 r51612 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 160 160 161 161 /* Store that information in IGuest */ 162 Guest* guest = pConsole-> getGuest();162 Guest* guest = pConsole->i_getGuest(); 163 163 AssertPtrReturnVoid(guest); 164 164 165 165 guest->setAdditionsStatus((VBoxGuestFacilityType)uFacility, (VBoxGuestFacilityStatus)uStatus, fFlags, pTimeSpecTS); 166 pConsole-> onAdditionsStateChange();166 pConsole->i_onAdditionsStateChange(); 167 167 } 168 168 … … 182 182 183 183 /* Store that information in IGuest. */ 184 Guest* pGuest = pConsole-> getGuest();184 Guest* pGuest = pConsole->i_getGuest(); 185 185 AssertPtrReturnVoid(pGuest); 186 186 … … 203 203 { 204 204 AssertPtrReturnVoid(guestInfo); 205 205 206 206 PDRVMAINVMMDEV pDrv = RT_FROM_MEMBER(pInterface, DRVMAINVMMDEV, Connector); 207 207 Console *pConsole = pDrv->pVMMDev->getParent(); 208 208 209 209 /* Store that information in IGuest */ 210 Guest* guest = pConsole-> getGuest();210 Guest* guest = pConsole->i_getGuest(); 211 211 AssertPtrReturnVoid(guest); 212 212 … … 221 221 * so that it can notify its consumers. 222 222 */ 223 pConsole-> onAdditionsStateChange();223 pConsole->i_onAdditionsStateChange(); 224 224 225 225 if (guestInfo->interfaceVersion < VMMDEV_VERSION) 226 pConsole-> onAdditionsOutdated();226 pConsole->i_onAdditionsOutdated(); 227 227 } 228 228 else … … 239 239 RTTimeNow(&TimeSpecTS); 240 240 guest->setAdditionsStatus(VBoxGuestFacilityType_All, VBoxGuestFacilityStatus_Inactive, 0 /*fFlags*/, &TimeSpecTS); 241 pConsole-> onAdditionsStateChange();241 pConsole->i_onAdditionsStateChange(); 242 242 } 243 243 } … … 254 254 255 255 /* Store that information in IGuest. */ 256 Guest *pGuest = pDrv->pVMMDev->getParent()-> getGuest();256 Guest *pGuest = pDrv->pVMMDev->getParent()->i_getGuest(); 257 257 AssertPtrReturnVoid(pGuest); 258 258 … … 283 283 284 284 /* store that information in IGuest */ 285 Guest* pGuest = pConsole-> getGuest();285 Guest* pGuest = pConsole->i_getGuest(); 286 286 AssertPtrReturnVoid(pGuest); 287 287 … … 295 295 * so that it can notify its consumers. 296 296 */ 297 pConsole-> onAdditionsStateChange();297 pConsole->i_onAdditionsStateChange(); 298 298 } 299 299 … … 316 316 * so that it can notify its consumers. 317 317 */ 318 Mouse *pMouse = pConsole-> getMouse();318 Mouse *pMouse = pConsole->i_getMouse(); 319 319 if (pMouse) /** @todo and if not? Can that actually happen? */ 320 320 pMouse->i_onVMMDevGuestCapsChange(fNewCaps & VMMDEV_MOUSE_GUEST_MASK); … … 356 356 if (pShape) 357 357 ::memcpy(shapeData.raw(), pShape, cbShapeSize); 358 pConsole-> onMousePointerShapeChange(fVisible, fAlpha, xHot, yHot, width, height, ComSafeArrayAsInParam(shapeData));358 pConsole->i_onMousePointerShapeChange(fVisible, fAlpha, xHot, yHot, width, height, ComSafeArrayAsInParam(shapeData)); 359 359 } 360 360 … … 364 364 Console *pConsole = pDrv->pVMMDev->getParent(); 365 365 366 Display *display = pConsole-> getDisplay();366 Display *display = pConsole->i_getDisplay(); 367 367 368 368 if (display) … … 379 379 Console *pConsole = pDrv->pVMMDev->getParent(); 380 380 381 Display *display = pConsole-> getDisplay();381 Display *display = pConsole->i_getDisplay(); 382 382 383 383 if (display) … … 400 400 #endif 401 401 IFramebuffer *framebuffer = NULL; 402 HRESULT hrc = pConsole-> getDisplay()->QueryFramebuffer(display, &framebuffer);402 HRESULT hrc = pConsole->i_getDisplay()->QueryFramebuffer(display, &framebuffer); 403 403 if (SUCCEEDED(hrc) && framebuffer) 404 404 { … … 424 424 return VERR_INVALID_PARAMETER; 425 425 IFramebuffer *framebuffer = NULL; 426 HRESULT hrc = pConsole-> getDisplay()->QueryFramebuffer(0, &framebuffer);426 HRESULT hrc = pConsole->i_getDisplay()->QueryFramebuffer(0, &framebuffer); 427 427 if (SUCCEEDED(hrc) && framebuffer) 428 428 { … … 451 451 452 452 /* Forward to Display, which calls corresponding framebuffers. */ 453 pConsole-> getDisplay()->handleSetVisibleRegion(cRect, pRect);453 pConsole->i_getDisplay()->handleSetVisibleRegion(cRect, pRect); 454 454 455 455 return VINF_SUCCESS; … … 462 462 463 463 /* Forward to Display, which calls corresponding framebuffers. */ 464 pConsole-> getDisplay()->handleQueryVisibleRegion(pcRect, pRect);464 pConsole->i_getDisplay()->handleQueryVisibleRegion(pcRect, pRect); 465 465 466 466 return VINF_SUCCESS; … … 485 485 486 486 /* store that information in IGuest */ 487 Guest* guest = pConsole-> getGuest();487 Guest* guest = pConsole->i_getGuest(); 488 488 AssertPtrReturn(guest, VERR_GENERAL_FAILURE); 489 489 … … 511 511 512 512 /* store that information in IGuest */ 513 Guest* guest = pConsole-> getGuest();513 Guest* guest = pConsole->i_getGuest(); 514 514 AssertPtrReturn(guest, VERR_GENERAL_FAILURE); 515 515 … … 537 537 538 538 /* store that information in IGuest */ 539 Guest* guest = pConsole-> getGuest();539 Guest* guest = pConsole->i_getGuest(); 540 540 AssertPtrReturn(guest, VERR_GENERAL_FAILURE); 541 541 … … 560 560 561 561 /* store that information in IGuest */ 562 Guest* guest = pConsole-> getGuest();562 Guest* guest = pConsole->i_getGuest(); 563 563 AssertPtrReturn(guest, VERR_GENERAL_FAILURE); 564 564 … … 574 574 575 575 /** @todo r=bird: Convert from 4KB to 1KB units? 576 * CollectorGuestHAL:: getGuestMemLoad says it returns KB units to576 * CollectorGuestHAL::i_getGuestMemLoad says it returns KB units to 577 577 * preCollect(). I might be wrong ofc, this is convoluted code... */ 578 578 if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_PHYS_MEM_TOTAL)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器