VirtualBox

Ignore:
Timestamp:
Jan 26, 2022 6:01:15 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149556
Message:

VMM,Main,HostServices: Use a function table for accessing the VBoxVMM.dll/so/dylib functionality, and load it dynamically when the Console object is initialized. Also converted a few drivers in Main to use device helpers to get config values and such. bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/UsbCardReader.cpp

    r93115 r93444  
    18771877    pThis->hReqQCardReaderCmd = NIL_RTREQQUEUE;
    18781878
    1879     if (!CFGMR3AreValuesValid(pCfg, "Object\0"))
    1880         return VERR_PDM_DRVINS_UNKNOWN_CFG_VALUES;
     1879    PDMDRV_VALIDATE_CONFIG_RETURN(pDrvIns, "Object", "");
    18811880    AssertMsgReturn(PDMDrvHlpNoAttach(pDrvIns) == VERR_PDM_NO_ATTACHED_DRIVER,
    18821881                    ("Configuration error: Not possible to attach anything to this driver!\n"),
     
    18841883
    18851884    void *pv;
    1886     int rc = CFGMR3QueryPtr(pCfg, "Object", &pv);
     1885    int rc = pDrvIns->pHlpR3->pfnCFGMQueryPtr(pCfg, "Object", &pv);
    18871886    AssertMsgRCReturn(rc, ("Configuration error: No/bad \"Object\" value! rc=%Rrc\n", rc), rc);
    18881887
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