VirtualBox

Changeset 85002 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 30, 2020 9:34:16 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138900
Message:

DnD: More work on path conversion / validation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/DragAndDrop.h

    r84998 r85002  
    9595bool DnDMIMENeedsDropDir(const char *pcszFormat, size_t cchFormatMax);
    9696
     97int DnDPathValidate(const char *pcszPath, bool fMustExist);
     98
     99/** DnD path conversion flags. */
     100typedef uint32_t DNDPATHCONVERTFLAGS;
     101
     102/** No flags specified.
     103 *  This also will convert the path to the universal tansport style. */
     104#define DNDPATHCONVERT_FLAGS_NONE                 0
     105/** Converts the path to a OS-dependent path. */
     106#define DNDPATHCONVERT_FLAGS_TO_NATIVE            RT_BIT(0)
     107
     108/** Mask of all valid DnD path conversion flags. */
     109#define DNDPATHCONVERT_FLAGS_VALID_MASK           UINT32_C(0x1)
     110
     111int DnDPathConvert(char *pszPath, size_t cbPath, DNDPATHCONVERTFLAGS fFlags);
    97112int DnDPathSanitizeFilename(char *pszPath, size_t cbPath);
    98 int DnDPathSanitize(char *pszPath, size_t cbPath);
    99113
    100114/** DnDURIObject flags. */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette