VirtualBox

Changeset 11063 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 1, 2008 2:00:53 PM (16 years ago)
Author:
vboxsync
Message:

HostServices/GuestProperties and Main: add timestamps and flags (currently stub code with no actual values accepted) to the guest properties

File:
1 edited

Legend:

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

    r10900 r11063  
    246246        PCFGMNODE pBiosCfg = NULL;      /* /Devices/pcbios/0/Config/ */
    247247#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 */
    250252#endif /* VBOX_WITH_GUEST_PROPS defined */
    251253
     
    17111713        else
    17121714        {
    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();
    17151719            /* Load the saved machine registry.  This is stored as extra data
    17161720             * keys in the machine XML file, starting with the prefix
     
    17441748                if (pszCFGMValue && *pszCFGMValue)
    17451749                {
    1746                     rc = CFGMR3InsertString(pRegistry, pszCFGMValueName, pszCFGMValue);
     1750                    rc = CFGMR3InsertString(pValues, pszCFGMValueName, pszCFGMValue);
    17471751                    AssertMsgRC(rc, ("failed to insert CFGM value '%s' to key '%s'\n", pszCFGMValue, pszCFGMValueName));
    17481752                }
     
    17501754
    17511755            /* 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]);
    17591769
    17601770            Log(("Set VBoxGuestPropSvc property store\n"));
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