VirtualBox

Ignore:
Timestamp:
Aug 16, 2009 9:12:50 PM (15 years ago)
Author:
vboxsync
Message:

PDMDRVREG change (big changeset).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r22215 r22277  
    24272427 * Construct a display driver instance.
    24282428 *
    2429  * @returns VBox status.
    2430  * @param   pDrvIns     The driver instance data.
    2431  *                      If the registration structure is needed, pDrvIns->pDrvReg points to it.
    2432  * @param   pCfgHandle  Configuration node handle for the driver. Use this to obtain the configuration
    2433  *                      of the driver instance. It's also found in pDrvIns->pCfgHandle, but like
    2434  *                      iInstance it's expected to be used a bit in this function.
    2435  */
    2436 DECLCALLBACK(int) Display::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle)
     2429 * @copydoc FNPDMDRVCONSTRUCT
     2430 */
     2431DECLCALLBACK(int) Display::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
    24372432{
    24382433    PDRVMAINDISPLAY pData = PDMINS_2_DATA(pDrvIns, PDRVMAINDISPLAY);
     
    24442439    if (!CFGMR3AreValuesValid(pCfgHandle, "Object\0"))
    24452440        return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
    2446     PPDMIBASE pBaseIgnore;
    2447     int rc = pDrvIns->pDrvHlp->pfnAttach(pDrvIns, &pBaseIgnore);
    2448     if (rc != VERR_PDM_NO_ATTACHED_DRIVER)
    2449     {
    2450         AssertMsgFailed(("Configuration error: Not possible to attach anything to this driver!\n"));
    2451         return VERR_PDM_DRVINS_NO_ATTACH;
    2452     }
     2441    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
     2442                    ("Configuration error: Not possible to attach anything to this driver!\n"),
     2443                    VERR_PDM_DRVINS_NO_ATTACH);
    24532444
    24542445    /*
     
    24892480     */
    24902481    void *pv;
    2491     rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
     2482    int rc = CFGMR3QueryPtr(pCfgHandle, "Object", &pv);
    24922483    if (RT_FAILURE(rc))
    24932484    {
     
    25452536    /* pfnResume */
    25462537    NULL,
     2538    /* pfnAttach */
     2539    NULL,
    25472540    /* pfnDetach */
    2548     NULL
     2541    NULL,
     2542    /* pfnPowerOff */
     2543    NULL,
     2544    /* pfnSoftReset */
     2545    NULL,
     2546    /* u32EndVersion */
     2547    PDM_DRVREG_VERSION
    25492548};
    25502549/* vi: set tabstop=4 shiftwidth=4 expandtab: */
Note: See TracChangeset for help on using the changeset viewer.

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