VirtualBox

Changeset 25985 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Jan 23, 2010 12:51:04 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56850
Message:

pdmifs.h: the final batch of refactored interface ID code.

Location:
trunk/src/VBox/Devices/PC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r25984 r25985  
    19411941{
    19421942    ACPIState *pThis = RT_FROM_MEMBER(pInterface, ACPIState, IBase);
    1943     if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0)
    1944         return &pThis->IBase;
     1943    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pThis->IBase);
    19451944    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIACPIPORT, &pThis->IACPIPort);
    19461945    return NULL;
  • trunk/src/VBox/Devices/PC/DrvACPI.cpp

    r25984 r25985  
    8787{
    8888    PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface);
    89     PDRVACPI pThis = PDMINS_2_DATA(pDrvIns, PDRVACPI);
    90 
    91     if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0)
    92         return &pDrvIns->IBase;
     89    PDRVACPI   pThis = PDMINS_2_DATA(pDrvIns, PDRVACPI);
     90
     91    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase);
    9392    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIACPICONNECTOR, &pThis->IACPIConnector);
    9493    return NULL;
  • trunk/src/VBox/Devices/PC/DrvAcpiCpu.cpp

    r25966 r25985  
    4040{
    4141    PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface);
    42     if (RTUuidCompare2Strs(pszIID, PDMIBASE_IID) == 0)
    43         return &pDrvIns->IBase;
     42    PDMIBASE_RETURN_INTERFACE(pszIID, PDMIBASE, &pDrvIns->IBase);
    4443    return NULL;
    4544}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette