VirtualBox

Changeset 69753 in vbox for trunk/src/VBox/Runtime/r3/win


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/r3/win/direnum-win.cpp

    r69691 r69753  
    4747{
    4848    NOREF(pszPath);
    49     return sizeof(RTDIR);
    50 }
    51 
    52 
    53 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf, uintptr_t hRelativeDir, void *pvNativeRelative))
     49    return sizeof(RTDIRINTERNAL);
     50}
     51
     52
     53int rtDirNativeOpen(PRTDIRINTERNAL pDir, char *pszPathBuf, uintptr_t hRelativeDir, void *pvNativeRelative))
    5454{
    5555    RT_NOREF(hRelativeDir, pvNativeRelative);
     
    107107
    108108
    109 RTDECL(int) RTDirClose(PRTDIR pDir)
     109RTDECL(int) RTDirClose(PRTDIRINTERNAL pDir)
    110110{
    111111    /*
     
    138138
    139139
    140 RTDECL(int) RTDirRead(PRTDIR pDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry)
    141 {
     140RTDECL(int) RTDirRead(RTDIR hDir, PRTDIRENTRY pDirEntry, size_t *pcbDirEntry)
     141{
     142    PPRTDIRINTERNAL pDir = hDir;
     143
    142144    /*
    143145     * Validate input.
     
    222224
    223225
    224 RTDECL(int) RTDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags)
    225 {
     226RTDECL(int) RTDirReadEx(RTDIR hDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags)
     227{
     228    PPRTDIRINTERNAL pDir = hDir;
    226229    /** @todo Symlinks: Find[First|Next]FileW will return info about
    227230        the link, so RTPATH_F_FOLLOW_LINK is not handled correctly. */
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