Changeset 25984 in vbox for trunk/src/VBox/Devices/Parallel
- Timestamp:
- Jan 23, 2010 12:19:47 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56849
- Location:
- trunk/src/VBox/Devices/Parallel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Parallel/DevParallel.cpp
r25966 r25984 658 658 if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0) 659 659 return &pThis->IBase; 660 if (RTUuidCompare2Strs(pszIID, PDMINTERFACE_HOST_PARALLEL_PORT) == 0) 661 return &pThis->IHostParallelPort; 660 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIHOSTPARALLELPORT, &pThis->IHostParallelPort); 662 661 return NULL; 663 662 } … … 832 831 if (RT_SUCCESS(rc)) 833 832 { 834 pThis->pDrvHostParallelConnector = (PDMIHOSTPARALLELCONNECTOR *)pThis->pDrvBase->pfnQueryInterface(pThis->pDrvBase, 835 PDMINTERFACE_HOST_PARALLEL_CONNECTOR); 836 if (!pThis->pDrvHostParallelConnector) 837 { 838 AssertMsgFailed(("Configuration error: instance %d has no host parallel interface!\n", iInstance)); 839 return VERR_PDM_MISSING_INTERFACE; 840 } 833 pThis->pDrvHostParallelConnector = PDMIBASE_QUERY_INTERFACE(pThis->pDrvBase, PDMIHOSTPARALLELCONNECTOR); 834 AssertMsgReturn(pThis->pDrvHostParallelConnector, 835 ("Configuration error: instance %d has no host parallel interface!\n", iInstance), 836 VERR_PDM_MISSING_INTERFACE); 841 837 /** @todo provide read notification interface!!!! */ 842 838 } -
trunk/src/VBox/Devices/Parallel/DrvHostParallel.cpp
r25971 r25984 93 93 if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0) 94 94 return &pDrvIns->IBase; 95 if (RTUuidCompare2Strs(pszIID, PDMINTERFACE_HOST_PARALLEL_CONNECTOR) == 0) 96 return &pThis->IHostParallelConnector; 95 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIHOSTPARALLELCONNECTOR, &pThis->IHostParallelConnector); 97 96 return NULL; 98 97 } … … 323 322 * Get the IHostParallelPort interface of the above driver/device. 324 323 */ 325 pThis->pDrvHostParallelPort = (PPDMIHOSTPARALLELPORT)pDrvIns->pUpBase->pfnQueryInterface(pDrvIns->pUpBase, PDMINTERFACE_HOST_PARALLEL_PORT);324 pThis->pDrvHostParallelPort = PDMIBASE_QUERY_INTERFACE(pDrvIns->pUpBase, PDMIHOSTPARALLELPORT); 326 325 if (!pThis->pDrvHostParallelPort) 327 326 return PDMDrvHlpVMSetError(pDrvIns, VERR_PDM_MISSING_INTERFACE_ABOVE, RT_SRC_POS, N_("Parallel#%d has no parallel port interface above"),
Note:
See TracChangeset
for help on using the changeset viewer.