Lines Matching refs:pFssIo
698 * @param pFssIo What TarFssCreateReadOnlyInterfaceForFile
701 void fssRdOnlyDestroyInterface(PFSSRDONLYINTERFACEIO pFssIo)
703 AssertPtr(pFssIo); AssertPtr(pFssIo->hVfsFss);
705 RTVfsFsStrmRelease(pFssIo->hVfsFss);
706 pFssIo->hVfsFss = NIL_RTVFSFSSTREAM;
708 RTVfsObjRelease(pFssIo->hVfsCurObj);
709 pFssIo->hVfsCurObj = NIL_RTVFSOBJ;
711 RTStrFree(pFssIo->pszCurName);
712 pFssIo->pszCurName = NULL;
714 RTMemFree(pFssIo);
722 * @param pFssIo What TarFssCreateReadOnlyInterfaceForFile
726 int fssRdOnlyGetCurrentName(PFSSRDONLYINTERFACEIO pFssIo, const char **ppszName)
728 AssertPtr(pFssIo); AssertPtr(pFssIo->hVfsFss);
730 if (pFssIo->hVfsCurObj == NIL_RTVFSOBJ)
732 if (pFssIo->fEndOfFss)
734 int rc = RTVfsFsStrmNext(pFssIo->hVfsFss, &pFssIo->pszCurName, &pFssIo->enmCurType, &pFssIo->hVfsCurObj);
737 pFssIo->fEndOfFss = rc == VERR_EOF;
743 *ppszName = pFssIo->pszCurName;
752 * @param pFssIo What TarFssCreateReadOnlyInterfaceForFile
755 int fssRdOnlySkipCurrent(PFSSRDONLYINTERFACEIO pFssIo)
757 AssertPtr(pFssIo); AssertPtr(pFssIo->hVfsFss);
759 if (pFssIo->hVfsCurObj == NIL_RTVFSOBJ)
761 if (pFssIo->fEndOfFss)
763 int rc = RTVfsFsStrmNext(pFssIo->hVfsFss, &pFssIo->pszCurName, &pFssIo->enmCurType, &pFssIo->hVfsCurObj);
766 pFssIo->fEndOfFss = rc == VERR_EOF;
772 RTVfsObjRelease(pFssIo->hVfsCurObj);
773 pFssIo->hVfsCurObj = NIL_RTVFSOBJ;
775 RTStrFree(pFssIo->pszCurName);
776 pFssIo->pszCurName = NULL;
786 * @param pFssIo What TarFssCreateReadOnlyInterfaceForFile
789 bool fssRdOnlyIsCurrentDirectory(PFSSRDONLYINTERFACEIO pFssIo)
791 AssertPtr(pFssIo); AssertPtr(pFssIo->hVfsFss);
793 if (pFssIo->hVfsCurObj == NIL_RTVFSOBJ)
795 if (pFssIo->fEndOfFss)
797 int rc = RTVfsFsStrmNext(pFssIo->hVfsFss, &pFssIo->pszCurName, &pFssIo->enmCurType, &pFssIo->hVfsCurObj);
800 pFssIo->fEndOfFss = rc == VERR_EOF;
805 return pFssIo->enmCurType == RTVFSOBJTYPE_DIR;