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/HostServices/SharedFolders/testcase/tstShflCase.cpp

    r69675 r69753  
    106106};
    107107
    108 int rtDirOpenFiltered(PRTDIR *ppDir, const char *pszPath, RTDIRFILTER enmFilter, uint32_t fFlags)
     108int rtDirOpenFiltered(RTDIR *phDir, const char *pszPath, RTDIRFILTER enmFilter, uint32_t fFlags)
    109109{
    110110    RT_NOREF2(enmFilter, fFlags);
     
    118118        AssertFailed();
    119119
    120     *ppDir = (PRTDIR)1;
     120    *phDir = (RTDIR)1;
    121121    return VINF_SUCCESS;
    122122}
    123123
    124 int rtDirClose(PRTDIR pDir)
    125 {
    126     RT_NOREF1(pDir);
     124int rtDirClose(RTDIR hDir)
     125{
     126    RT_NOREF1(hDir);
    127127    iDirFile = 0;
    128128    return VINF_SUCCESS;
    129129}
    130130
    131 int rtDirReadEx(PRTDIR pDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags)
    132 {
    133     RT_NOREF4(pDir, pcbDirEntry, enmAdditionalAttribs, fFlags);
     131int rtDirReadEx(RTDIR hDir, PRTDIRENTRYEX pDirEntry, size_t *pcbDirEntry, RTFSOBJATTRADD enmAdditionalAttribs, uint32_t fFlags)
     132{
     133    RT_NOREF4(hDir, pcbDirEntry, enmAdditionalAttribs, fFlags);
    134134    switch (iDirList)
    135135    {
     
    200200    size_t         cbComponent;
    201201    int            rc = VERR_FILE_NOT_FOUND;
    202     PRTDIR         hSearch = 0;
     202    RTDIR          hSearch = NIL_RTDIR;
    203203    char           szWildCard[4];
    204204
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