VirtualBox

Changeset 67186 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Jun 1, 2017 6:39:08 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115863
Message:

IPRT: Added RTVfsFsStrmToNormalDir, RTVfsFsStrmToDirUndo, RTVfsDirOpenFileAsIoStream, and RTVfsFsStreamToPrivate.

Location:
trunk/src/VBox/Runtime
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r67132 r67186  
    608608        common/vfs/vfsbase.cpp \
    609609        common/vfs/vfschain.cpp \
     610        common/vfs/vfsfss2dir.cpp \
    610611        common/vfs/vfsiosmisc.cpp \
    611612        common/vfs/vfsmemory.cpp \
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r67166 r67186  
    20872087
    20882088
     2089RTDECL(void *) RTVfsFsStreamToPrivate(RTVFSFSSTREAM hVfsFss, PCRTVFSFSSTREAMOPS pFsStreamOps)
     2090{
     2091    RTVFSFSSTREAMINTERNAL *pThis = hVfsFss;
     2092    AssertPtrReturn(pThis, NULL);
     2093    AssertReturn(pThis->uMagic == RTVFSFSSTREAM_MAGIC, NULL);
     2094    if (pThis->pOps != pFsStreamOps)
     2095        return NULL;
     2096    return pThis->Base.pvThis;
     2097}
     2098
    20892099
    20902100/*
     
    23642374
    23652375
     2376RTDECL(int) RTVfsDirOpenFileAsIoStream(RTVFSDIR hVfsDir, const char *pszPath, uint64_t fOpen, PRTVFSIOSTREAM phVfsIos)
     2377{
     2378    RTVFSFILE hVfsFile;
     2379    int rc = RTVfsDirOpenFile(hVfsDir, pszPath, fOpen, &hVfsFile);
     2380    if (RT_SUCCESS(rc))
     2381    {
     2382        *phVfsIos = RTVfsFileToIoStream(hVfsFile);
     2383        AssertStmt(*phVfsIos != NIL_RTVFSIOSTREAM, rc = VERR_INTERNAL_ERROR_2);
     2384        RTVfsFileRelease(hVfsFile);
     2385    }
     2386    return rc;
     2387}
     2388
     2389
     2390
    23662391RTDECL(int) RTVfsDirQueryPathInfo(RTVFSDIR hVfsDir, const char *pszPath, PRTFSOBJINFO pObjInfo,
    23672392                                  RTFSOBJATTRADD enmAddAttr, uint32_t fFlags)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette