VirtualBox

Ignore:
Timestamp:
Aug 30, 2019 5:25:03 PM (5 years ago)
Author:
vboxsync
Message:

Runtime/RTVfs: Implement RTVfsDirRewind

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r79155 r80518  
    32083208
    32093209
     3210RTDECL(int) RTVfsDirRewind(RTVFSDIR hVfsDir)
     3211{
     3212    /*
     3213     * Validate input.
     3214     */
     3215    RTVFSDIRINTERNAL *pThis = hVfsDir;
     3216    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
     3217    AssertReturn(pThis->uMagic == RTVFSDIR_MAGIC, VERR_INVALID_HANDLE);
     3218
     3219    /*
     3220     * Call the directory method.
     3221     */
     3222    RTVfsLockAcquireRead(pThis->Base.hLock);
     3223    int rc = pThis->pOps->pfnRewindDir(pThis->Base.pvThis);
     3224    RTVfsLockReleaseRead(pThis->Base.hLock);
     3225    return rc;
     3226}
     3227
     3228
    32103229/*
    32113230 *
Note: See TracChangeset for help on using the changeset viewer.

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