VirtualBox

Changeset 53437 in vbox for trunk


Ignore:
Timestamp:
Dec 3, 2014 7:03:45 PM (10 years ago)
Author:
vboxsync
Message:

CFGM: Added CFGMR3Exists for TM.

Location:
trunk
Files:
2 edited

Legend:

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

    r46792 r53437  
    134134VMMR3DECL(int)          CFGMR3CopyTree(PCFGMNODE pDstTree, PCFGMNODE pSrcTree, uint32_t fFlags);
    135135
     136VMMR3DECL(bool)         CFGMR3Exists(           PCFGMNODE pNode, const char *pszName);
    136137VMMR3DECL(int)          CFGMR3QueryType(        PCFGMNODE pNode, const char *pszName, PCFGMVALUETYPE penmType);
    137138VMMR3DECL(int)          CFGMR3QuerySize(        PCFGMNODE pNode, const char *pszName, size_t *pcb);
  • trunk/src/VBox/VMM/VMMR3/CFGM.cpp

    r46793 r53437  
    610610}
    611611
     612
     613/**
     614 * Checks if the given value exists.
     615 *
     616 * @returns true if it exists, false if not.
     617 * @param   pNode           Which node to search for pszName in.
     618 * @param   pszName         The name of the value we seek.
     619 */
     620VMMR3DECL(bool) CFGMR3Exists(PCFGMNODE pNode, const char *pszName)
     621{
     622    PCFGMLEAF pLeaf;
     623    int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
     624    return RT_SUCCESS_NP(rc);
     625}
    612626
    613627
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