Changeset 46792 in vbox
- Timestamp:
- Jun 26, 2013 9:27:42 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
include/VBox/vmm/cfgm.h (modified) (1 diff)
-
src/VBox/VMM/VMMR3/CFGM.cpp (modified) (2 diffs)
-
src/VBox/VMM/VMMR3/VMMR3.def (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cfgm.h
r44387 r46792 88 88 89 89 VMMR3DECL(PCFGMNODE) CFGMR3CreateTree(PUVM pUVM); 90 VMMR3DECL(int) CFGMR3DestroyTree(PCFGMNODE pRoot); 90 91 VMMR3DECL(void) CFGMR3Dump(PCFGMNODE pRoot); 91 92 VMMR3DECL(int) CFGMR3DuplicateSubTree(PCFGMNODE pRoot, PCFGMNODE *ppCopy); -
trunk/src/VBox/VMM/VMMR3/CFGM.cpp
r46791 r46792 1911 1911 1912 1912 /** 1913 * Remove a node.1914 * 1915 * @param pNode Parent node.1913 * Removes a node. 1914 * 1915 * @param pNode The node to remove. 1916 1916 */ 1917 1917 VMMR3DECL(void) CFGMR3RemoveNode(PCFGMNODE pNode) … … 2018 2018 pLeaf->enmType = (CFGMVALUETYPE)0; 2019 2019 } 2020 } 2021 2022 /** 2023 * Destroys a tree created with CFGMR3CreateTree or CFGMR3DuplicateSubTree. 2024 * 2025 * @returns VBox status code. 2026 * @param pRoot The root node of the tree. 2027 */ 2028 VMMR3DECL(int) CFGMR3DestroyTree(PCFGMNODE pRoot) 2029 { 2030 if (pRoot) 2031 return VINF_SUCCESS; 2032 AssertReturn(!pRoot->pParent, VERR_INVALID_PARAMETER); 2033 AssertReturn(!pRoot->pVM || pRoot != pRoot->pVM->cfgm.s.pRoot, VERR_ACCESS_DENIED); 2034 2035 CFGMR3RemoveNode(pRoot); 2036 return VINF_SUCCESS; 2020 2037 } 2021 2038 -
trunk/src/VBox/VMM/VMMR3/VMMR3.def
r46474 r46792 4 4 5 5 ; 6 ; Copyright (C) 2010-201 1Oracle Corporation6 ; Copyright (C) 2010-2013 Oracle Corporation 7 7 ; 8 8 ; This file is part of VirtualBox Open Source Edition (OSE), as … … 30 30 CFGMR3Dump 31 31 CFGMR3CreateTree 32 CFGMR3DestroyTree 32 33 CFGMR3GetValueName 33 34 CFGMR3GetName
Note:
See TracChangeset
for help on using the changeset viewer.

