Lines Matching refs:pszName

81 static int  cfgmR3ResolveLeaf(PCFGMNODE pNode, const char *pszName, PCFGMLEAF *ppLeaf);
82 static int cfgmR3InsertLeaf(PCFGMNODE pNode, const char *pszName, PCFGMLEAF *ppLeaf);
407 * @param pszName Where to store the node name.
408 * @param cchName Size of the buffer pointed to by pszName (with terminator).
410 VMMR3DECL(int) CFGMR3GetName(PCFGMNODE pCur, char *pszName, size_t cchName)
418 memcpy(pszName, pCur->szName, pCur->cchName + 1);
518 * @param pszName Where to store the value name.
519 * @param cchName Size of the buffer pointed to by pszName (with terminator).
521 VMMR3DECL(int) CFGMR3GetValueName(PCFGMLEAF pCur, char *pszName, size_t cchName)
529 memcpy(pszName, pCur->szName, pCur->cchName + 1);
617 * @param pNode Which node to search for pszName in.
618 * @param pszName The name of the value we seek.
620 VMMR3DECL(bool) CFGMR3Exists(PCFGMNODE pNode, const char *pszName)
623 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
632 * @param pNode Which node to search for pszName in.
633 * @param pszName Name of an integer value.
636 VMMR3DECL(int) CFGMR3QueryType(PCFGMNODE pNode, const char *pszName, PCFGMVALUETYPE penmType)
639 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
654 * @param pNode Which node to search for pszName in.
655 * @param pszName Name of an integer value.
658 VMMR3DECL(int) CFGMR3QuerySize(PCFGMNODE pNode, const char *pszName, size_t *pcb)
661 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
692 * @param pNode Which node to search for pszName in.
693 * @param pszName Name of an integer value.
696 VMMR3DECL(int) CFGMR3QueryInteger(PCFGMNODE pNode, const char *pszName, uint64_t *pu64)
699 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
715 * @param pNode Which node to search for pszName in.
716 * @param pszName Name of an integer value.
720 VMMR3DECL(int) CFGMR3QueryIntegerDef(PCFGMNODE pNode, const char *pszName, uint64_t *pu64, uint64_t u64Def)
723 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
747 * @param pNode Which node to search for pszName in.
748 * @param pszName Name of a zero terminate character value.
752 VMMR3DECL(int) CFGMR3QueryString(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString)
755 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
780 * @param pNode Which node to search for pszName in.
781 * @param pszName Name of a zero terminate character value.
786 VMMR3DECL(int) CFGMR3QueryStringDef(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString, const char *pszDef)
789 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
829 * @param pNode Which node to search for pszName in.
830 * @param pszName Name of a byte string value.
834 VMMR3DECL(int) CFGMR3QueryBytes(PCFGMNODE pNode, const char *pszName, void *pvData, size_t cbData)
837 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
1203 * @param pNode Which node to search for pszName in.
1263 * @param pNode Which node to search for pszName in.
1264 * @param pszName Name of a byte string value.
1267 static int cfgmR3ResolveLeaf(PCFGMNODE pNode, const char *pszName, PCFGMLEAF *ppLeaf)
1273 size_t cchName = strlen(pszName);
1279 int iDiff = memcmp(pszName, pLeaf->szName, cchName);
1453 * @param pszName Name or path of the new child node.
1457 VMMR3DECL(int) CFGMR3InsertSubTree(PCFGMNODE pNode, const char *pszName, PCFGMNODE pSubTree, PCFGMNODE *ppChild)
1475 int rc = CFGMR3InsertNode(pNode, pszName, &pNewChild);
1659 * @param pszName Name or path of the new child node.
1662 VMMR3DECL(int) CFGMR3InsertNode(PCFGMNODE pNode, const char *pszName, PCFGMNODE *ppChild)
1670 while (*pszName == '/')
1671 pszName++;
1672 if (strchr(pszName, '/'))
1674 char *pszDup = RTStrDup(pszName);
1726 else if (*pszName)
1731 size_t cchName = strlen(pszName);
1738 int iDiff = cfgmR3CompareNames(pszName, cchName, pNext->szName, pNext->cchName);
1760 memcpy(pNew->szName, pszName, cchName + 1);
1784 AssertMsgFailed(("Invalid path %s\n", pszName));
1790 AssertMsgFailed(("No parent! path %s\n", pszName));
1828 char *pszName;
1829 RTStrAPrintfV(&pszName, pszNameFormat, Args);
1830 if (pszName)
1832 rc = CFGMR3InsertNode(pNode, pszName, ppChild);
1833 RTStrFree(pszName);
1859 * @param pszName Name of the new child node.
1863 static int cfgmR3InsertLeaf(PCFGMNODE pNode, const char *pszName, PCFGMLEAF *ppLeaf)
1866 if (*pszName)
1873 size_t cchName = strlen(pszName);
1880 int iDiff = cfgmR3CompareNames(pszName, cchName, pNext->szName, pNext->cchName);
1897 memcpy(pNew->szName, pszName, cchName + 1);
2059 * @param pszName Value name.
2062 VMMR3DECL(int) CFGMR3InsertInteger(PCFGMNODE pNode, const char *pszName, uint64_t u64Integer)
2065 int rc = cfgmR3InsertLeaf(pNode, pszName, &pLeaf);
2081 * @param pszName Value name.
2086 VMMR3DECL(int) CFGMR3InsertStringN(PCFGMNODE pNode, const char *pszName, const char *pszString, size_t cchString)
2106 rc = cfgmR3InsertLeaf(pNode, pszName, &pLeaf);
2132 * @param pszName Value name.
2135 VMMR3DECL(int) CFGMR3InsertString(PCFGMNODE pNode, const char *pszName, const char *pszString)
2137 return CFGMR3InsertStringN(pNode, pszName, pszString, strlen(pszString));
2147 * @param pszName Value name.
2151 VMMR3DECL(int) CFGMR3InsertStringFV(PCFGMNODE pNode, const char *pszName, const char *pszFormat, va_list va)
2170 rc = cfgmR3InsertLeaf(pNode, pszName, &pLeaf);
2196 * @param pszName Value name.
2200 VMMR3DECL(int) CFGMR3InsertStringF(PCFGMNODE pNode, const char *pszName, const char *pszFormat, ...)
2204 int rc = CFGMR3InsertStringFV(pNode, pszName, pszFormat, va);
2215 * @param pszName Value name.
2218 VMMR3DECL(int) CFGMR3InsertStringW(PCFGMNODE pNode, const char *pszName, PCRTUTF16 pwszValue)
2224 rc = CFGMR3InsertString(pNode, pszName, pszValue);
2236 * @param pszName Value name.
2240 VMMR3DECL(int) CFGMR3InsertBytes(PCFGMNODE pNode, const char *pszName, const void *pvBytes, size_t cbBytes)
2259 rc = cfgmR3InsertLeaf(pNode, pszName, &pLeaf);
2320 * @param pszName Name of the new child node.
2322 VMMR3DECL(int) CFGMR3RemoveValue(PCFGMNODE pNode, const char *pszName)
2325 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);
2342 * @param pNode Which node to search for pszName in.
2343 * @param pszName Name of an integer value.
2346 VMMR3DECL(int) CFGMR3QueryU64(PCFGMNODE pNode, const char *pszName, uint64_t *pu64)
2348 return CFGMR3QueryInteger(pNode, pszName, pu64);
2356 * @param pNode Which node to search for pszName in.
2357 * @param pszName Name of an integer value.
2361 VMMR3DECL(int) CFGMR3QueryU64Def(PCFGMNODE pNode, const char *pszName, uint64_t *pu64, uint64_t u64Def)
2363 return CFGMR3QueryIntegerDef(pNode, pszName, pu64, u64Def);
2371 * @param pNode Which node to search for pszName in.
2372 * @param pszName Name of an integer value.
2375 VMMR3DECL(int) CFGMR3QueryS64(PCFGMNODE pNode, const char *pszName, int64_t *pi64)
2378 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2389 * @param pNode Which node to search for pszName in.
2390 * @param pszName Name of an integer value.
2394 VMMR3DECL(int) CFGMR3QueryS64Def(PCFGMNODE pNode, const char *pszName, int64_t *pi64, int64_t i64Def)
2397 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, i64Def);
2407 * @param pNode Which node to search for pszName in.
2408 * @param pszName Name of an integer value.
2411 VMMR3DECL(int) CFGMR3QueryU32(PCFGMNODE pNode, const char *pszName, uint32_t *pu32)
2414 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2430 * @param pNode Which node to search for pszName in.
2431 * @param pszName Name of an integer value.
2435 VMMR3DECL(int) CFGMR3QueryU32Def(PCFGMNODE pNode, const char *pszName, uint32_t *pu32, uint32_t u32Def)
2438 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, u32Def);
2456 * @param pNode Which node to search for pszName in.
2457 * @param pszName Name of an integer value.
2460 VMMR3DECL(int) CFGMR3QueryS32(PCFGMNODE pNode, const char *pszName, int32_t *pi32)
2463 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2480 * @param pNode Which node to search for pszName in.
2481 * @param pszName Name of an integer value.
2485 VMMR3DECL(int) CFGMR3QueryS32Def(PCFGMNODE pNode, const char *pszName, int32_t *pi32, int32_t i32Def)
2488 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, i32Def);
2507 * @param pNode Which node to search for pszName in.
2508 * @param pszName Name of an integer value.
2511 VMMR3DECL(int) CFGMR3QueryU16(PCFGMNODE pNode, const char *pszName, uint16_t *pu16)
2514 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2530 * @param pNode Which node to search for pszName in.
2531 * @param pszName Name of an integer value.
2535 VMMR3DECL(int) CFGMR3QueryU16Def(PCFGMNODE pNode, const char *pszName, uint16_t *pu16, uint16_t u16Def)
2538 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, u16Def);
2556 * @param pNode Which node to search for pszName in.
2557 * @param pszName Name of an integer value.
2560 VMMR3DECL(int) CFGMR3QueryS16(PCFGMNODE pNode, const char *pszName, int16_t *pi16)
2563 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2580 * @param pNode Which node to search for pszName in.
2581 * @param pszName Name of an integer value.
2585 VMMR3DECL(int) CFGMR3QueryS16Def(PCFGMNODE pNode, const char *pszName, int16_t *pi16, int16_t i16Def)
2588 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, i16Def);
2607 * @param pNode Which node to search for pszName in.
2608 * @param pszName Name of an integer value.
2611 VMMR3DECL(int) CFGMR3QueryU8(PCFGMNODE pNode, const char *pszName, uint8_t *pu8)
2614 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2630 * @param pNode Which node to search for pszName in.
2631 * @param pszName Name of an integer value.
2635 VMMR3DECL(int) CFGMR3QueryU8Def(PCFGMNODE pNode, const char *pszName, uint8_t *pu8, uint8_t u8Def)
2638 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, u8Def);
2656 * @param pNode Which node to search for pszName in.
2657 * @param pszName Name of an integer value.
2660 VMMR3DECL(int) CFGMR3QueryS8(PCFGMNODE pNode, const char *pszName, int8_t *pi8)
2663 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2680 * @param pNode Which node to search for pszName in.
2681 * @param pszName Name of an integer value.
2685 VMMR3DECL(int) CFGMR3QueryS8Def(PCFGMNODE pNode, const char *pszName, int8_t *pi8, int8_t i8Def)
2688 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, i8Def);
2707 * @param pNode Which node to search for pszName in.
2708 * @param pszName Name of an integer value.
2712 VMMR3DECL(int) CFGMR3QueryBool(PCFGMNODE pNode, const char *pszName, bool *pf)
2715 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2726 * @param pNode Which node to search for pszName in.
2727 * @param pszName Name of an integer value.
2732 VMMR3DECL(int) CFGMR3QueryBoolDef(PCFGMNODE pNode, const char *pszName, bool *pf, bool fDef)
2735 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, fDef);
2745 * @param pNode Which node to search for pszName in.
2746 * @param pszName Name of an integer value.
2749 VMMR3DECL(int) CFGMR3QueryPort(PCFGMNODE pNode, const char *pszName, PRTIOPORT pPort)
2752 return CFGMR3QueryU16(pNode, pszName, pPort);
2760 * @param pNode Which node to search for pszName in.
2761 * @param pszName Name of an integer value.
2765 VMMR3DECL(int) CFGMR3QueryPortDef(PCFGMNODE pNode, const char *pszName, PRTIOPORT pPort, RTIOPORT PortDef)
2768 return CFGMR3QueryU16Def(pNode, pszName, pPort, PortDef);
2776 * @param pNode Which node to search for pszName in.
2777 * @param pszName Name of an integer value.
2780 VMMR3DECL(int) CFGMR3QueryUInt(PCFGMNODE pNode, const char *pszName, unsigned int *pu)
2783 return CFGMR3QueryU32(pNode, pszName, (uint32_t *)pu);
2791 * @param pNode Which node to search for pszName in.
2792 * @param pszName Name of an integer value.
2796 VMMR3DECL(int) CFGMR3QueryUIntDef(PCFGMNODE pNode, const char *pszName, unsigned int *pu, unsigned int uDef)
2799 return CFGMR3QueryU32Def(pNode, pszName, (uint32_t *)pu, uDef);
2807 * @param pNode Which node to search for pszName in.
2808 * @param pszName Name of an integer value.
2811 VMMR3DECL(int) CFGMR3QuerySInt(PCFGMNODE pNode, const char *pszName, signed int *pi)
2814 return CFGMR3QueryS32(pNode, pszName, (int32_t *)pi);
2822 * @param pNode Which node to search for pszName in.
2823 * @param pszName Name of an integer value.
2827 VMMR3DECL(int) CFGMR3QuerySIntDef(PCFGMNODE pNode, const char *pszName, signed int *pi, signed int iDef)
2830 return CFGMR3QueryS32Def(pNode, pszName, (int32_t *)pi, iDef);
2838 * @param pNode Which node to search for pszName in.
2839 * @param pszName Name of an integer value.
2842 VMMR3DECL(int) CFGMR3QueryPtr(PCFGMNODE pNode, const char *pszName, void **ppv)
2845 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2862 * @param pNode Which node to search for pszName in.
2863 * @param pszName Name of an integer value.
2867 VMMR3DECL(int) CFGMR3QueryPtrDef(PCFGMNODE pNode, const char *pszName, void **ppv, void *pvDef)
2870 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, (uintptr_t)pvDef);
2889 * @param pNode Which node to search for pszName in.
2890 * @param pszName Name of an integer value.
2893 VMMR3DECL(int) CFGMR3QueryGCPtr(PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr)
2896 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2913 * @param pNode Which node to search for pszName in.
2914 * @param pszName Name of an integer value.
2918 VMMR3DECL(int) CFGMR3QueryGCPtrDef(PCFGMNODE pNode, const char *pszName, PRTGCPTR pGCPtr, RTGCPTR GCPtrDef)
2921 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, GCPtrDef);
2940 * @param pNode Which node to search for pszName in.
2941 * @param pszName Name of an integer value.
2944 VMMR3DECL(int) CFGMR3QueryGCPtrU(PCFGMNODE pNode, const char *pszName, PRTGCUINTPTR pGCPtr)
2947 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
2964 * @param pNode Which node to search for pszName in.
2965 * @param pszName Name of an integer value.
2969 VMMR3DECL(int) CFGMR3QueryGCPtrUDef(PCFGMNODE pNode, const char *pszName, PRTGCUINTPTR pGCPtr, RTGCUINTPTR GCPtrDef)
2972 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, GCPtrDef);
2991 * @param pNode Which node to search for pszName in.
2992 * @param pszName Name of an integer value.
2995 VMMR3DECL(int) CFGMR3QueryGCPtrS(PCFGMNODE pNode, const char *pszName, PRTGCINTPTR pGCPtr)
2998 int rc = CFGMR3QueryInteger(pNode, pszName, &u64);
3015 * @param pNode Which node to search for pszName in.
3016 * @param pszName Name of an integer value.
3020 VMMR3DECL(int) CFGMR3QueryGCPtrSDef(PCFGMNODE pNode, const char *pszName, PRTGCINTPTR pGCPtr, RTGCINTPTR GCPtrDef)
3023 int rc = CFGMR3QueryIntegerDef(pNode, pszName, &u64, GCPtrDef);
3043 * @param pNode Which node to search for pszName in.
3044 * @param pszName Value name. This value must be of zero terminated character string type.
3049 VMMR3DECL(int) CFGMR3QueryStringAlloc(PCFGMNODE pNode, const char *pszName, char **ppszString)
3052 int rc = CFGMR3QuerySize(pNode, pszName, &cbString);
3058 rc = CFGMR3QueryString(pNode, pszName, pszString, cbString);
3076 * @param pNode Which node to search for pszName in. This cannot be
3080 * @param pszName Value name. This value must be of zero terminated character string type.
3086 VMMR3DECL(int) CFGMR3QueryStringAllocDef(PCFGMNODE pNode, const char *pszName, char **ppszString, const char *pszDef)
3095 int rc = cfgmR3ResolveLeaf(pNode, pszName, &pLeaf);