VirtualBox

Ignore:
Timestamp:
May 8, 2020 11:29:09 AM (5 years ago)
Author:
vboxsync
Message:

IPRT: Added RTVfsTypeName. bugref:9699

File:
1 edited

Legend:

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

    r84192 r84204  
    370370                                            PRTVFSPARSEDPATH pPath, uint32_t fFlags);
    371371
     372
     373
     374/**
     375 * Translates a RTVFSOBJTYPE value into a string.
     376 *
     377 * @returns Pointer to readonly name.
     378 * @param   enmType             The object type to name.
     379 */
     380RTDECL(const char *) RTVfsTypeName(RTVFSOBJTYPE enmType)
     381{
     382    switch (enmType)
     383    {
     384        case RTVFSOBJTYPE_INVALID:      return "invalid";
     385        case RTVFSOBJTYPE_BASE:         return "base";
     386        case RTVFSOBJTYPE_VFS:          return "VFS";
     387        case RTVFSOBJTYPE_FS_STREAM:    return "FS stream";
     388        case RTVFSOBJTYPE_IO_STREAM:    return "I/O stream";
     389        case RTVFSOBJTYPE_DIR:          return "directory";
     390        case RTVFSOBJTYPE_FILE:         return "file";
     391        case RTVFSOBJTYPE_SYMLINK:      return "symlink";
     392        case RTVFSOBJTYPE_END:          return "end";
     393        case RTVFSOBJTYPE_32BIT_HACK:
     394            break;
     395    }
     396    return "unknown";
     397}
    372398
    373399
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