Changeset 11063 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 1, 2008 2:00:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r10900 r11063 246 246 PCFGMNODE pBiosCfg = NULL; /* /Devices/pcbios/0/Config/ */ 247 247 #ifdef VBOX_WITH_GUEST_PROPS 248 PCFGMNODE pGuest = NULL; /* /Guest */ 249 PCFGMNODE pRegistry = NULL; /* /Guest/Registry */ 248 PCFGMNODE pGuestProps = NULL; /* /GuestProps */ 249 PCFGMNODE pValues = NULL; /* /GuestProps/Values */ 250 PCFGMNODE pTimestamps = NULL; /* /GuestProps/Timestamps */ 251 PCFGMNODE pFlags = NULL; /* /GuestProps/Flags */ 250 252 #endif /* VBOX_WITH_GUEST_PROPS defined */ 251 253 … … 1711 1713 else 1712 1714 { 1713 rc = CFGMR3InsertNode(pRoot, "Guest", &pGuest); RC_CHECK(); 1714 rc = CFGMR3InsertNode(pGuest, "Registry", &pRegistry); RC_CHECK(); 1715 rc = CFGMR3InsertNode(pRoot, "GuestProps", &pGuestProps); RC_CHECK(); 1716 rc = CFGMR3InsertNode(pGuestProps, "Values", &pValues); RC_CHECK(); 1717 rc = CFGMR3InsertNode(pGuestProps, "Timestamps", &pTimestamps); RC_CHECK(); 1718 rc = CFGMR3InsertNode(pGuestProps, "Flags", &pFlags); RC_CHECK(); 1715 1719 /* Load the saved machine registry. This is stored as extra data 1716 1720 * keys in the machine XML file, starting with the prefix … … 1744 1748 if (pszCFGMValue && *pszCFGMValue) 1745 1749 { 1746 rc = CFGMR3InsertString(p Registry, pszCFGMValueName, pszCFGMValue);1750 rc = CFGMR3InsertString(pValues, pszCFGMValueName, pszCFGMValue); 1747 1751 AssertMsgRC(rc, ("failed to insert CFGM value '%s' to key '%s'\n", pszCFGMValue, pszCFGMValueName)); 1748 1752 } … … 1750 1754 1751 1755 /* Setup the service. */ 1752 VBOXHGCMSVCPARM parm; 1753 1754 parm.type = VBOX_HGCM_SVC_PARM_PTR; 1755 parm.u.pointer.addr = pRegistry; 1756 parm.u.pointer.size = sizeof(pRegistry); /* We don't actually care. */ 1757 1758 pConsole->mVMMDev->hgcmHostCall ("VBoxGuestPropSvc", guestProp::SET_CFGM_NODE, 1, &parm); 1756 VBOXHGCMSVCPARM parms[3]; 1757 1758 parms[0].type = VBOX_HGCM_SVC_PARM_PTR; 1759 parms[0].u.pointer.addr = pValues; 1760 parms[0].u.pointer.size = sizeof(pValues); /* We don't actually care. */ 1761 parms[1].type = VBOX_HGCM_SVC_PARM_PTR; 1762 parms[1].u.pointer.addr = pTimestamps; 1763 parms[1].u.pointer.size = sizeof(pTimestamps); 1764 parms[2].type = VBOX_HGCM_SVC_PARM_PTR; 1765 parms[2].u.pointer.addr = pFlags; 1766 parms[2].u.pointer.size = sizeof(pFlags); 1767 1768 pConsole->mVMMDev->hgcmHostCall ("VBoxGuestPropSvc", guestProp::SET_CFGM_NODE, 3, &parms[0]); 1759 1769 1760 1770 Log(("Set VBoxGuestPropSvc property store\n"));
Note:
See TracChangeset
for help on using the changeset viewer.