- Timestamp:
- Oct 22, 2021 8:56:25 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkatDriverStack.cpp
r91842 r92015 62 62 /** @name Driver Fakes/Stubs 63 63 * 64 * @note The VMM functions defined here will turn into driver helpers before65 * long, as the drivers aren't supposed to import directly from the VMM in66 * the future.67 *68 64 * @{ */ 69 65 70 VMMR3DECL(PCFGMNODE) CFGMR3GetChild(PCFGMNODE pNode, const char *pszPath)66 VMMR3DECL(PCFGMNODE) audioTestDrvHlp_CFGMR3GetChild(PCFGMNODE pNode, const char *pszPath) 71 67 { 72 68 RT_NOREF(pNode, pszPath); … … 75 71 76 72 77 VMMR3DECL(int) CFGMR3QueryString(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString)73 VMMR3DECL(int) audioTestDrvHlp_CFGMR3QueryString(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString) 78 74 { 79 75 if (pNode != NULL) … … 99 95 100 96 101 VMMR3DECL(int) CFGMR3QueryStringAlloc(PCFGMNODE pNode, const char *pszName, char **ppszString)97 VMMR3DECL(int) audioTestDrvHlp_CFGMR3QueryStringAlloc(PCFGMNODE pNode, const char *pszName, char **ppszString) 102 98 { 103 99 char szStr[128]; 104 int rc = CFGMR3QueryString(pNode, pszName, szStr, sizeof(szStr));100 int rc = audioTestDrvHlp_CFGMR3QueryString(pNode, pszName, szStr, sizeof(szStr)); 105 101 if (RT_SUCCESS(rc)) 106 102 *ppszString = RTStrDup(szStr); … … 110 106 111 107 112 VMMR3DECL(void) MMR3HeapFree(void *pv) 113 { 108 VMMR3DECL(void) audioTestDrvHlp_MMR3HeapFree(PPDMDRVINS pDrvIns, void *pv) 109 { 110 RT_NOREF(pDrvIns); 111 114 112 /* counterpart to CFGMR3QueryStringAlloc */ 115 113 RTStrFree((char *)pv); … … 117 115 118 116 119 VMMR3DECL(int) CFGMR3QueryStringDef(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString, const char *pszDef)117 VMMR3DECL(int) audioTestDrvHlp_CFGMR3QueryStringDef(PCFGMNODE pNode, const char *pszName, char *pszString, size_t cchString, const char *pszDef) 120 118 { 121 119 PCPDMDRVREG pDrvReg = (PCPDMDRVREG)pNode; … … 142 140 143 141 144 VMMR3DECL(int) CFGMR3QueryBoolDef(PCFGMNODE pNode, const char *pszName, bool *pf, bool fDef)142 VMMR3DECL(int) audioTestDrvHlp_CFGMR3QueryBoolDef(PCFGMNODE pNode, const char *pszName, bool *pf, bool fDef) 145 143 { 146 144 PCPDMDRVREG pDrvReg = (PCPDMDRVREG)pNode; … … 161 159 162 160 163 VMMR3DECL(int) CFGMR3QueryU8(PCFGMNODE pNode, const char *pszName, uint8_t *pu8)161 VMMR3DECL(int) audioTestDrvHlp_CFGMR3QueryU8(PCFGMNODE pNode, const char *pszName, uint8_t *pu8) 164 162 { 165 163 RT_NOREF(pNode, pszName, pu8); … … 168 166 169 167 170 VMMR3DECL(int) CFGMR3QueryU32(PCFGMNODE pNode, const char *pszName, uint32_t *pu32)168 VMMR3DECL(int) audioTestDrvHlp_CFGMR3QueryU32(PCFGMNODE pNode, const char *pszName, uint32_t *pu32) 171 169 { 172 170 RT_NOREF(pNode, pszName, pu32); … … 175 173 176 174 177 VMMR3DECL(int) CFGMR3ValidateConfig(PCFGMNODE pNode, const char *pszNode,178 const char *pszValidValues, const char *pszValidNodes,179 const char *pszWho, uint32_t uInstance)175 VMMR3DECL(int) audioTestDrvHlp_CFGMR3ValidateConfig(PCFGMNODE pNode, const char *pszNode, 176 const char *pszValidValues, const char *pszValidNodes, 177 const char *pszWho, uint32_t uInstance) 180 178 { 181 179 RT_NOREF(pNode, pszNode, pszValidValues, pszValidNodes, pszWho, uInstance); … … 273 271 s_DrvHlp.pfnSTAMDeregister = audioTestDrvHlp_STAMDeregister; 274 272 s_DrvHlp.pfnSTAMDeregisterByPrefix = audioTestDrvHlp_STAMDeregisterByPrefix; 273 s_DrvHlp.pfnCFGMGetChild = audioTestDrvHlp_CFGMR3GetChild; 274 s_DrvHlp.pfnCFGMQueryString = audioTestDrvHlp_CFGMR3QueryString; 275 s_DrvHlp.pfnCFGMQueryStringAlloc = audioTestDrvHlp_CFGMR3QueryStringAlloc; 276 s_DrvHlp.pfnMMHeapFree = audioTestDrvHlp_MMR3HeapFree; 277 s_DrvHlp.pfnCFGMQueryStringDef = audioTestDrvHlp_CFGMR3QueryStringDef; 278 s_DrvHlp.pfnCFGMQueryBoolDef = audioTestDrvHlp_CFGMR3QueryBoolDef; 279 s_DrvHlp.pfnCFGMQueryU8 = audioTestDrvHlp_CFGMR3QueryU8; 280 s_DrvHlp.pfnCFGMQueryU32 = audioTestDrvHlp_CFGMR3QueryU32; 281 s_DrvHlp.pfnCFGMValidateConfig = audioTestDrvHlp_CFGMR3ValidateConfig; 275 282 } 276 283 return &s_DrvHlp;
Note:
See TracChangeset
for help on using the changeset viewer.