VirtualBox

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

Main,ExtPacks: Don't link with the VMM anymore, use the function table. bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/BusMouseSample/VBoxBusMouseMainVM.cpp

    r93115 r93452  
    3737#include <VBox/err.h>
    3838#include <VBox/version.h>
    39 #include <VBox/vmm/cfgm.h>
     39#include <VBox/vmm/vmmr3vtable.h>
    4040#include <iprt/string.h>
    4141#include <iprt/param.h>
     
    6363 * @interface_method_impl{VBOXEXTPACKVMREG,pfnVMConfigureVMM
    6464 */
    65 static DECLCALLBACK(int)  vboxBusMouseExtPackVM_VMConfigureVMM(PCVBOXEXTPACKVMREG pThis, VBOXEXTPACK_IF_CS(IConsole) *pConsole, PVM pVM)
     65static DECLCALLBACK(int)  vboxBusMouseExtPackVM_VMConfigureVMM(PCVBOXEXTPACKVMREG pThis, VBOXEXTPACK_IF_CS(IConsole) *pConsole,
     66                                                               PVM pVM, PCVMMR3VTABLE pVMM)
    6667{
    6768    RT_NOREF(pThis, pConsole);
     
    7677        return rc;
    7778
    78     PCFGMNODE pCfgRoot = CFGMR3GetRoot(pVM);
     79    PCFGMNODE pCfgRoot = pVMM->pfnCFGMR3GetRoot(pVM);
    7980    AssertReturn(pCfgRoot, VERR_INTERNAL_ERROR_3);
    8081
    81     PCFGMNODE pCfgDevices = CFGMR3GetChild(pCfgRoot, "PDM/Devices");
     82    PCFGMNODE pCfgDevices = pVMM->pfnCFGMR3GetChild(pCfgRoot, "PDM/Devices");
    8283    AssertReturn(pCfgDevices, VERR_INTERNAL_ERROR_3);
    8384
    8485    PCFGMNODE pCfgMine;
    85     rc = CFGMR3InsertNode(pCfgDevices, "VBoxBusMouse", &pCfgMine);
     86    rc = pVMM->pfnCFGMR3InsertNode(pCfgDevices, "VBoxBusMouse", &pCfgMine);
    8687    AssertRCReturn(rc, rc);
    87     rc = CFGMR3InsertString(pCfgMine, "Path", szPath);
     88    rc = pVMM->pfnCFGMR3InsertString(pCfgMine, "Path", szPath);
    8889    AssertRCReturn(rc, rc);
    8990
     
    9596    AssertRCReturn(rc, rc);
    9697    RTPathStripFilename(szPath);
    97     rc = CFGMR3InsertString(pCfgMine, "RCSearchPath", szPath);
     98    rc = pVMM->pfnCFGMR3InsertString(pCfgMine, "RCSearchPath", szPath);
    9899    AssertRCReturn(rc, rc);
    99100#endif
     
    102103    AssertRCReturn(rc, rc);
    103104    RTPathStripFilename(szPath);
    104     rc = CFGMR3InsertString(pCfgMine, "R0SearchPath", szPath);
     105    rc = pVMM->pfnCFGMR3InsertString(pCfgMine, "R0SearchPath", szPath);
    105106    AssertRCReturn(rc, rc);
    106107
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