Lines Matching refs:pCfgHandle

114 static PDMAUDIOFMT drvAudioGetConfFormat(PCFGMNODE pCfgHandle, const char *pszKey,
117 if ( pCfgHandle == NULL
125 int rc = CFGMR3QueryStringAlloc(pCfgHandle, pszKey, &pszValue);
143 static int drvAudioGetConfInt(PCFGMNODE pCfgHandle, const char *pszKey,
147 if ( pCfgHandle == NULL
155 int rc = CFGMR3QueryInteger(pCfgHandle, pszKey, &u64Data);
167 static const char *drvAudioGetConfStr(PCFGMNODE pCfgHandle, const char *pszKey,
170 if ( pCfgHandle == NULL
178 int rc = CFGMR3QueryStringAlloc(pCfgHandle, pszKey, &pszValue);
189 static int drvAudioProcessOptions(PCFGMNODE pCfgHandle, const char *pszPrefix, struct audio_option *opt)
191 AssertPtrReturn(pCfgHandle, VERR_INVALID_POINTER);
198 /* If pCfgHandle is NULL, let NULL be passed to get int and get string functions..
201 if (pCfgHandle != NULL)
208 pCfgChildHandle = CFGMR3GetFirstChild(pCfgHandle);
210 pCfgHandle = pCfgChildHandle;
218 pCfgChildHandle = CFGMR3GetFirstChild(pCfgHandle);
223 pCfgHandle = pCfgChildChildHandle;
246 *intp = drvAudioGetConfInt(pCfgHandle, opt->name, *intp, &fUseDefault);
254 *fmtp = drvAudioGetConfFormat(pCfgHandle, opt->name, *fmtp, &fUseDefault);
262 *strp = drvAudioGetConfStr(pCfgHandle, opt->name, *strp, &fUseDefault);
1223 static int drvAudioHostInit(PCFGMNODE pCfgHandle, PDRVAUDIO pThis)
1225 /* pCfgHandle is optional. */
1228 NOREF(pCfgHandle);
1348 static DECLCALLBACK(int) drvAudioInit(PCFGMNODE pCfgHandle, PPDMDRVINS pDrvIns)
1350 AssertPtrReturn(pCfgHandle, VERR_INVALID_POINTER);
1368 rc = drvAudioProcessOptions(pCfgHandle, "AUDIO", audio_options);
1385 rc = drvAudioHostInit(pCfgHandle, pThis);
1814 static DECLCALLBACK(int) drvAudioConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
1816 LogFlowFunc(("pDrvIns=%#p, pCfgHandle=%#p, fFlags=%x\n", pDrvIns, pCfgHandle, fFlags));
1865 CFGMR3Dump(pCfgHandle);
1868 rc = drvAudioInit(pCfgHandle, pDrvIns);