Lines Matching defs:pElement
240 PRTVFSCHAINELEMSPEC pElement = &pSpec->paElements[iElement];
241 pElement->pszProvider = NULL;
242 pElement->enmTypeIn = iElement ? pSpec->paElements[iElement - 1].enmTypeOut : RTVFSOBJTYPE_INVALID;
243 pElement->enmTypeOut = RTVFSOBJTYPE_INVALID;
244 pElement->enmAction = RTVFSCHAINACTION_INVALID;
245 pElement->cArgs = 0;
246 pElement->papszArgs = 0;
249 return pElement;
257 * @param pElement The element.
262 static int rtVfsChainSpecElementAddArg(PRTVFSCHAINELEMSPEC pElement, const char *psz, size_t cch)
264 uint32_t iArg = pElement->cArgs;
270 memcpy(papszNew, pElement->papszArgs, iArg * sizeof(papszNew[0]));
271 RTMemTmpFree(pElement->papszArgs);
272 pElement->papszArgs = papszNew;
276 pElement->papszArgs[iArg] = rtVfsChainSpecDupStrN(psz, cch, &rc);
277 pElement->papszArgs[iArg + 1] = NULL;
278 pElement->cArgs = iArg + 1;
434 PRTVFSCHAINELEMSPEC pElement = rtVfsChainSpecAddElement(pSpec, &rc);
435 if (!pElement)
437 pElement->enmAction = enmAction;
443 pElement->enmTypeOut = RTVFSOBJTYPE_BASE;
445 pElement->enmTypeOut = RTVFSOBJTYPE_VFS;
447 pElement->enmTypeOut = RTVFSOBJTYPE_FS_STREAM;
449 pElement->enmTypeOut = RTVFSOBJTYPE_IO_STREAM;
451 pElement->enmTypeOut = RTVFSOBJTYPE_DIR;
453 pElement->enmTypeOut = RTVFSOBJTYPE_FILE;
455 pElement->enmTypeOut = RTVFSOBJTYPE_SYMLINK;
480 pElement->pszProvider = rtVfsChainSpecDupStrN(pszSrc, cch, &rc);
481 if (!pElement->pszProvider)
492 rc = rtVfsChainSpecElementAddArg(pElement, pszSrc, cch);