VirtualBox

Ignore:
Timestamp:
Nov 19, 2017 2:27:58 PM (7 years ago)
Author:
vboxsync
Message:

iprt/dir: Morphing PRTDIR into a handle named RTDIR. (Been wanting to correct this for years. Don't know why I makde it a pointer rather than an abstrct handle like everything else.)

File:
1 edited

Legend:

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

    r69720 r69753  
    5454{
    5555    /** The directory handle. */
    56     PRTDIR          hDir;
     56    RTDIR           hDir;
    5757    /** Whether to leave the handle open when the VFS handle is closed. */
    5858    bool            fLeaveOpen;
     
    8888static DECLCALLBACK(int) rtVfsStdDir_QueryEntryInfo(void *pvThis, const char *pszEntry,
    8989                                                    PRTFSOBJINFO pObjInfo, RTFSOBJATTRADD enmAddAttr);
    90 static int rtVfsDirFromRTDir(PRTDIR hDir, uint32_t fFlags, bool fLeaveOpen, PRTVFSDIR phVfsDir);
     90static int rtVfsDirFromRTDir(RTDIR hDir, uint32_t fFlags, bool fLeaveOpen, PRTVFSDIR phVfsDir);
    9191
    9292
     
    329329    PRTVFSSTDDIR pThis = (PRTVFSSTDDIR)pvThis;
    330330    /** @todo subdir open flags */
    331     PRTDIR hSubDir;
     331    RTDIR hSubDir;
    332332    int rc = RTDirRelDirOpenFiltered(pThis->hDir, pszSubDir, RTDIRFILTER_NONE, fFlags, &hSubDir);
    333333    if (RT_SUCCESS(rc))
     
    352352    else
    353353    {
    354         PRTDIR hSubDir;
     354        RTDIR hSubDir;
    355355        rc = RTDirRelDirCreate(pThis->hDir, pszSubDir, fMode, 0 /* fFlags */, &hSubDir);
    356356        if (RT_SUCCESS(rc))
     
    547547 * @param   phVfsDir            Where to return the handle.
    548548 */
    549 static int rtVfsDirFromRTDir(PRTDIR hDir, uint32_t fFlags, bool fLeaveOpen, PRTVFSDIR phVfsDir)
     549static int rtVfsDirFromRTDir(RTDIR hDir, uint32_t fFlags, bool fLeaveOpen, PRTVFSDIR phVfsDir)
    550550{
    551551    PRTVFSSTDDIR    pThis;
     
    567567
    568568
    569 RTDECL(int) RTVfsDirFromRTDir(PRTDIR hDir, bool fLeaveOpen, PRTVFSDIR phVfsDir)
     569RTDECL(int) RTVfsDirFromRTDir(RTDIR hDir, bool fLeaveOpen, PRTVFSDIR phVfsDir)
    570570{
    571571    AssertReturn(RTDirIsValid(hDir), VERR_INVALID_HANDLE);
     
    579579     * Open the file the normal way and pass it to RTVfsFileFromRTFile.
    580580     */
    581     PRTDIR hDir;
     581    RTDIR hDir;
    582582    int rc = RTDirOpenFiltered(&hDir, pszPath, RTDIRFILTER_NONE, fFlags);
    583583    if (RT_SUCCESS(rc))
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