VirtualBox

Changeset 69753 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Nov 19, 2017 2:27:58 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119153
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.)

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/dir.h

    r69716 r69753  
    3333
    3434
     35/** Pointer to the data behind an open directory handle. */
     36typedef struct RTDIRINTERNAL *PRTDIRINTERNAL;
     37
    3538/**
    3639 * Filter a the filename in the against a filter.
     
    4144 * @param   pszName     The path to match to the filter.
    4245 */
    43 typedef DECLCALLBACK(bool) FNRTDIRFILTER(PRTDIR pDir, const char *pszName);
     46typedef DECLCALLBACK(bool) FNRTDIRFILTER(PRTDIRINTERNAL pDir, const char *pszName);
    4447/** Pointer to a filter function. */
    4548typedef FNRTDIRFILTER *PFNRTDIRFILTER;
     
    4952 * Open directory.
    5053 */
    51 typedef struct RTDIR
     54typedef struct RTDIRINTERNAL
    5255{
    5356    /** Magic value, RTDIR_MAGIC. */
     
    138141# endif
    139142#endif
    140 } RTDIR;
     143} RTDIRINTERNAL;
     144
    141145
    142146
     
    146150 * @returns false if valid after having bitched about it first.
    147151 */
    148 DECLINLINE(bool) rtDirValidHandle(PRTDIR pDir)
     152DECLINLINE(bool) rtDirValidHandle(PRTDIRINTERNAL pDir)
    149153{
    150154    AssertMsgReturn(VALID_PTR(pDir), ("%p\n", pDir), false);
     
    169173 *                              we're to use (consume) hRelativeDir.
    170174 */
    171 int rtDirNativeOpen(PRTDIR pDir, char *pszPathBuf, uintptr_t hRelativeDir, void *pvNativeRelative);
     175int rtDirNativeOpen(PRTDIRINTERNAL pDir, char *pszPathBuf, uintptr_t hRelativeDir, void *pvNativeRelative);
    172176
    173177/**
     
    180184
    181185
    182 DECLHIDDEN(int) rtDirOpenRelativeOrHandle(PRTDIR *ppDir, const char *pszRelativeAndFilter, RTDIRFILTER enmFilter, uint32_t fFlags,
    183                                           uintptr_t hRelativeDir, void *pvNativeRelative);
     186DECLHIDDEN(int) rtDirOpenRelativeOrHandle(RTDIR *phDir, const char *pszRelativeAndFilter, RTDIRFILTER enmFilter,
     187                                          uint32_t fFlags, uintptr_t hRelativeDir, void *pvNativeRelative);
    184188
    185189#endif
  • trunk/src/VBox/Runtime/include/internal/magics.h

    r69474 r69753  
    4747/** Magic value for RTDBGKRNLINFOINT::u32Magic. (John Carmack) */
    4848#define RTDBGKRNLINFO_MAGIC             UINT32_C(0x19700820)
    49 /** The value of RTDIR::u32Magic. (Michael Ende) */
     49/** The value of RTDIRINTERNAL::u32Magic. (Michael Ende) */
    5050#define RTDIR_MAGIC                     UINT32_C(0x19291112)
    51 /** The value of RTDIR::u32Magic after RTDirClose().  */
     51/** The value of RTDIRINTERNAL::u32Magic after RTDirClose().  */
    5252#define RTDIR_MAGIC_DEAD                UINT32_C(0x19950829)
    5353/** The value of RTDVMINTERNAL::u32Magic. (Dan Brown) */
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