Changeset 25984 in vbox for trunk/src/VBox/Frontends/VBoxBFE
- Timestamp:
- Jan 23, 2010 12:19:47 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56849
- Location:
- trunk/src/VBox/Frontends/VBoxBFE
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxBFE/HostUSBImpl.cpp
r23021 r25984 224 224 return setError (E_FAIL, 225 225 tr ("Device is not in a capturable state")); 226 PVUSBIRHCONFIG pRhConfig = (PVUSBIRHCONFIG)pBase->pfnQueryInterface (pBase, PDMINTERFACE_VUSB_RH_CONFIG);227 AssertReturn 226 PVUSBIRHCONFIG pRhConfig = PDMIBASE_QUERY_INTERFACE(pBase, VUSBIRHCONFIG); 227 AssertReturn(pRhConfig, E_FAIL); 228 228 229 229 /* … … 293 293 if (RT_SUCCESS (vrc)) 294 294 { 295 PVUSBIRHCONFIG pRhConfig = (PVUSBIRHCONFIG)pBase->pfnQueryInterface (pBase, PDMINTERFACE_VUSB_RH_CONFIG);296 Assert 295 PVUSBIRHCONFIG pRhConfig = PDMIBASE_QUERY_INTERFACE(pBase, VUSBIRHCONFIG); 296 Assert(pRhConfig); 297 297 298 298 RTUUID Uuid = aDevice->id(); -
trunk/src/VBox/Frontends/VBoxBFE/StatusImpl.cpp
r25966 r25984 6 6 7 7 /* 8 * Copyright (C) 2006-20 07Sun Microsystems, Inc.8 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 93 93 if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0) 94 94 return &pDrvIns->IBase; 95 if (RTUuidCompare2Strs(pszIID, PDMINTERFACE_LED_CONNECTORS) == 0) 96 return &pDrv->ILedConnectors; 95 PDMIBASE_RETURN_INTERFACE(pszIID, PDMILEDCONNECTORS, &pDrv->ILedConnectors); 97 96 return NULL; 98 97 } … … 180 179 * query the LEDs we want. 181 180 */ 182 pData->pLedPorts = (PPDMILEDPORTS)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, PDMINTERFACE_LED_PORTS); 183 if (!pData->pLedPorts) 184 { 185 AssertMsgFailed(("Configuration error: No led ports interface above!\n")); 186 return VERR_PDM_MISSING_INTERFACE_ABOVE; 187 } 181 pData->pLedPorts = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMILEDPORTS); 182 AssertMsgReturn(pData->pLedPorts, ("Configuration error: No led ports interface above!\n"), 183 VERR_PDM_MISSING_INTERFACE_ABOVE); 188 184 189 185 for (unsigned i = pData->iFirstLUN; i <= pData->iLastLUN; i++) -
trunk/src/VBox/Frontends/VBoxBFE/VMControl.cpp
r25771 r25984 103 103 { 104 104 Assert (pBase); 105 PPDMIACPIPORT pPort = 106 (PPDMIACPIPORT) pBase->pfnQueryInterface(pBase, PDMINTERFACE_ACPI_PORT); 105 PPDMIACPIPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIACPIPORT); 107 106 vrc = pPort ? pPort->pfnPowerButtonPress(pPort) : VERR_INVALID_POINTER; 108 107 } … … 121 120 { 122 121 Assert (pBase); 123 PPDMIACPIPORT pPort = 124 (PPDMIACPIPORT) pBase->pfnQueryInterface(pBase, PDMINTERFACE_ACPI_PORT); 122 PPDMIACPIPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIACPIPORT); 125 123 vrc = pPort ? pPort->pfnSleepButtonPress(pPort) : VERR_INVALID_POINTER; 126 124 } -
trunk/src/VBox/Frontends/VBoxBFE/VMMDevInterface.cpp
r25966 r25984 6 6 7 7 /* 8 * Copyright (C) 2006-20 07Sun Microsystems, Inc.8 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 353 353 if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0) 354 354 return &pDrvIns->IBase; 355 if (RTUuidCompare2Strs(pszIID, PDMINTERFACE_VMMDEV_CONNECTOR) == 0) 356 return &pDrv->Connector; 357 #ifdef VBOX_WITH_HGCM 358 if (RTUuidCompare2Strs(pszIID, PDMINTERFACE_HGCM_CONNECTOR) == 0) 359 { 360 if (fActivateHGCM()) 361 return &pDrv->HGCMConnector; 362 return NULL; 363 } 355 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIVMMDEVCONNECTOR, &pDrv->Connector); 356 #ifdef VBOX_WITH_HGCM 357 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIHGCMCONNECTOR, fActivateHGCM() ? &pDrv->HGCMConnector : NULL); 364 358 #endif 365 359 return NULL; … … 426 420 * Get the IVMMDevPort interface of the above driver/device. 427 421 */ 428 pData->pUpPort = (PPDMIVMMDEVPORT)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, PDMINTERFACE_VMMDEV_PORT); 429 if (!pData->pUpPort) 430 { 431 AssertMsgFailed(("Configuration error: No VMMDev port interface above!\n")); 432 return VERR_PDM_MISSING_INTERFACE_ABOVE; 433 } 422 pData->pUpPort = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIVMMDEVPORT); 423 AssertMsgReturn(pData->pUpPort, ("Configuration error: No VMMDev port interface above!\n"), VERR_PDM_MISSING_INTERFACE_ABOVE); 434 424 435 425 #ifdef VBOX_WITH_HGCM 436 426 if (fActivateHGCM()) 437 427 { 438 pData->pHGCMPort = (PPDMIHGCMPORT)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, PDMINTERFACE_HGCM_PORT); 439 if (!pData->pHGCMPort) 440 { 441 AssertMsgFailed(("Configuration error: No HGCM port interface above!\n")); 442 return VERR_PDM_MISSING_INTERFACE_ABOVE; 443 } 428 pData->pHGCMPort = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIHGCMPORT); 429 AssertMsgReturn(pData->pHGCMPort, ("Configuration error: No HGCM port interface above!\n"), VERR_PDM_MISSING_INTERFACE_ABOVE); 444 430 } 445 431 #endif
Note:
See TracChangeset
for help on using the changeset viewer.