VirtualBox

Changeset 39853 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 24, 2012 4:38:14 PM (13 years ago)
Author:
vboxsync
Message:

CFGM: Added CFGMR3InsertValue and CFGMR3CopyTree; changed CFGMR3DuplicateSubTree; bugfixed CFGMR3InsertSubTree and CFGMR3ReplaceSubTree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cfgm.h

    r39838 r39853  
    8989VMMR3DECL(int)          CFGMR3ConstructDefaultTree(PVM pVM);
    9090VMMR3DECL(void)         CFGMR3Dump(PCFGMNODE pRoot);
    91 VMMR3DECL(PCFGMNODE)    CFGMR3DuplicateSubTree(PCFGMNODE pRoot);
     91VMMR3DECL(int)          CFGMR3DuplicateSubTree(PCFGMNODE pRoot, PCFGMNODE *ppCopy);
    9292VMMR3DECL(int)          CFGMR3ReplaceSubTree(PCFGMNODE pRoot, PCFGMNODE pNewRoot);
    9393VMMR3DECL(int)          CFGMR3InsertSubTree(PCFGMNODE pNode, const char *pszName, PCFGMNODE pSubTree, PCFGMNODE *ppChild);
     
    104104VMMR3DECL(int)          CFGMR3InsertStringW(PCFGMNODE pNode, const char *pszName, PCRTUTF16 pwszValue);
    105105VMMR3DECL(int)          CFGMR3InsertBytes(PCFGMNODE pNode, const char *pszName, const void *pvBytes, size_t cbBytes);
     106VMMR3DECL(int)          CFGMR3InsertValue(PCFGMNODE pNode, PCFGMLEAF pValue);
    106107VMMR3DECL(int)          CFGMR3RemoveValue(PCFGMNODE pNode, const char *pszName);
     108
     109/** @name CFGMR3CopyTree flags.
     110 * @{ */
     111/** Reserved value disposition \#0.  */
     112#define CFGM_COPY_FLAGS_RESERVED_VALUE_DISP_0   UINT32_C(0x00000000)
     113/** Reserved value disposition \#1.  */
     114#define CFGM_COPY_FLAGS_RESERVED_VALUE_DISP_1   UINT32_C(0x00000001)
     115/** Replace exiting values.  */
     116#define CFGM_COPY_FLAGS_REPLACE_VALUES          UINT32_C(0x00000002)
     117/** Ignore exiting values.  */
     118#define CFGM_COPY_FLAGS_IGNORE_EXISTING_VALUES  UINT32_C(0x00000003)
     119/** Value disposition mask.  */
     120#define CFGM_COPY_FLAGS_VALUE_DISP_MASK         UINT32_C(0x00000003)
     121
     122/** Replace exiting keys.  */
     123#define CFGM_COPY_FLAGS_RESERVED_KEY_DISP       UINT32_C(0x00000000)
     124/** Replace exiting keys.  */
     125#define CFGM_COPY_FLAGS_MERGE_KEYS              UINT32_C(0x00000010)
     126/** Replace exiting keys.  */
     127#define CFGM_COPY_FLAGS_REPLACE_KEYS            UINT32_C(0x00000020)
     128/** Ignore existing keys.  */
     129#define CFGM_COPY_FLAGS_IGNORE_EXISTING_KEYS    UINT32_C(0x00000030)
     130/** Key disposition.  */
     131#define CFGM_COPY_FLAGS_KEY_DISP_MASK           UINT32_C(0x00000030)
     132/** @} */
     133VMMR3DECL(int)          CFGMR3CopyTree(PCFGMNODE pDstTree, PCFGMNODE pSrcTree, uint32_t fFlags);
    107134
    108135VMMR3DECL(int)          CFGMR3QueryType(        PCFGMNODE pNode, const char *pszName, PCFGMVALUETYPE penmType);
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