VirtualBox

Changeset 15052 in vbox for trunk


Ignore:
Timestamp:
Dec 5, 2008 5:31:10 PM (16 years ago)
Author:
vboxsync
Message:

Main: Pass custom hard disk properties to CFGM.

File:
1 edited

Legend:

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

    r15006 r15052  
    861861                pParent = pCur;
    862862                parentHardDisk = hardDisk;
     863            }
     864
     865            /* Pass all custom parameters. */
     866            SafeArray <BSTR> names;
     867            SafeArray <BSTR> values;
     868            hrc = hardDisk->GetProperties (NULL,
     869                                           ComSafeArrayAsOutParam (names),
     870                                           ComSafeArrayAsOutParam (values));    H();
     871
     872            if (names.size() != 0)
     873            {
     874                PCFGMNODE pVDC;
     875                rc = CFGMR3InsertNode (pCfg, "VDConfig", &pVDC);                RC_CHECK();
     876                for (size_t i = 0; i < names.size(); ++ i)
     877                {
     878                    rc = CFGMR3InsertString (pVDC, Utf8Str (names [i]),
     879                                             Utf8Str (values [i]));             RC_CHECK();
     880                }
    863881            }
    864882        }
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