Changeset 93452 in vbox for trunk/src/VBox/ExtPacks/BusMouseSample
- Timestamp:
- Jan 26, 2022 8:01:52 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149564
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ExtPacks/BusMouseSample/VBoxBusMouseMainVM.cpp
r93115 r93452 37 37 #include <VBox/err.h> 38 38 #include <VBox/version.h> 39 #include <VBox/vmm/ cfgm.h>39 #include <VBox/vmm/vmmr3vtable.h> 40 40 #include <iprt/string.h> 41 41 #include <iprt/param.h> … … 63 63 * @interface_method_impl{VBOXEXTPACKVMREG,pfnVMConfigureVMM 64 64 */ 65 static DECLCALLBACK(int) vboxBusMouseExtPackVM_VMConfigureVMM(PCVBOXEXTPACKVMREG pThis, VBOXEXTPACK_IF_CS(IConsole) *pConsole, PVM pVM) 65 static DECLCALLBACK(int) vboxBusMouseExtPackVM_VMConfigureVMM(PCVBOXEXTPACKVMREG pThis, VBOXEXTPACK_IF_CS(IConsole) *pConsole, 66 PVM pVM, PCVMMR3VTABLE pVMM) 66 67 { 67 68 RT_NOREF(pThis, pConsole); … … 76 77 return rc; 77 78 78 PCFGMNODE pCfgRoot = CFGMR3GetRoot(pVM);79 PCFGMNODE pCfgRoot = pVMM->pfnCFGMR3GetRoot(pVM); 79 80 AssertReturn(pCfgRoot, VERR_INTERNAL_ERROR_3); 80 81 81 PCFGMNODE pCfgDevices = CFGMR3GetChild(pCfgRoot, "PDM/Devices");82 PCFGMNODE pCfgDevices = pVMM->pfnCFGMR3GetChild(pCfgRoot, "PDM/Devices"); 82 83 AssertReturn(pCfgDevices, VERR_INTERNAL_ERROR_3); 83 84 84 85 PCFGMNODE pCfgMine; 85 rc = CFGMR3InsertNode(pCfgDevices, "VBoxBusMouse", &pCfgMine);86 rc = pVMM->pfnCFGMR3InsertNode(pCfgDevices, "VBoxBusMouse", &pCfgMine); 86 87 AssertRCReturn(rc, rc); 87 rc = CFGMR3InsertString(pCfgMine, "Path", szPath);88 rc = pVMM->pfnCFGMR3InsertString(pCfgMine, "Path", szPath); 88 89 AssertRCReturn(rc, rc); 89 90 … … 95 96 AssertRCReturn(rc, rc); 96 97 RTPathStripFilename(szPath); 97 rc = CFGMR3InsertString(pCfgMine, "RCSearchPath", szPath);98 rc = pVMM->pfnCFGMR3InsertString(pCfgMine, "RCSearchPath", szPath); 98 99 AssertRCReturn(rc, rc); 99 100 #endif … … 102 103 AssertRCReturn(rc, rc); 103 104 RTPathStripFilename(szPath); 104 rc = CFGMR3InsertString(pCfgMine, "R0SearchPath", szPath);105 rc = pVMM->pfnCFGMR3InsertString(pCfgMine, "R0SearchPath", szPath); 105 106 AssertRCReturn(rc, rc); 106 107
Note:
See TracChangeset
for help on using the changeset viewer.