VirtualBox

Changeset 85409 in vbox for trunk/include


Ignore:
Timestamp:
Jul 22, 2020 8:56:22 AM (5 years ago)
Author:
vboxsync
Message:

DnD/TransferList: More fixes + testcases [build fix, forgot a file].

File:
1 edited

Legend:

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

    r85371 r85409  
    219219/** No flags specified. */
    220220#define DNDTRANSFERLIST_FLAGS_NONE                   0
    221 /** Resolve all symlinks. Currently not supported. */
    222 #define DNDTRANSFERLIST_FLAGS_RESOLVE_SYMLINKS       RT_BIT(0)
     221/** Enables recurisve directory handling. */
     222#define DNDTRANSFERLIST_FLAGS_RECURSIVE              RT_BIT(0)
     223/** Resolve all symlinks. Currently not supported and will be ignored. */
     224#define DNDTRANSFERLIST_FLAGS_RESOLVE_SYMLINKS       RT_BIT(1)
    223225/** Keep the files + directory entries open while
    224226 *  being in this list. */
    225 #define DNDTRANSFERLIST_FLAGS_KEEP_OPEN              RT_BIT(1)
     227#define DNDTRANSFERLIST_FLAGS_KEEP_OPEN              RT_BIT(2)
    226228/** Lazy loading: Only enumerate sub directories when needed. Not implemented yet.
    227229 ** @todo Implement lazy loading.  */
    228 #define DNDTRANSFERLIST_FLAGS_LAZY                   RT_BIT(2)
     230#define DNDTRANSFERLIST_FLAGS_LAZY                   RT_BIT(3)
    229231
    230232/** Mask of all valid DnD transfer list flags. */
    231 #define DNDTRANSFERLIST_FLAGS_VALID_MASK             UINT32_C(0x7)
     233#define DNDTRANSFERLIST_FLAGS_VALID_MASK             UINT32_C(0xF)
    232234
    233235/**
     
    255257    /** List node. */
    256258    RTLISTNODE Node;
    257     /** Pointer to the relative, allocated root path.
    258      *  Always ends with a trailing slash. */
     259    /** Pointer to the allocated root path.
     260     *  - Relative to the list's root path
     261     *  - Always ends with a trailing slash
     262     *  - Always stored in transport style (UNIX-y). */
    259263    char      *pszPathRoot;
    260264} DNDTRANSFERLISTROOT;
     
    273277    char                   *pszPathRootAbs;
    274278    /** List of all relative (to \a pszPathRootAbs) top-level file/directory entries, of type DNDTRANSFERLISTROOT.
    275      *  Note: All paths are kept internally as UNIX paths for
     279     *  Note: All paths are stored internally in transport style (UNIX paths) for
    276280     *        easier conversion/handling!  */
    277281    RTLISTANCHOR            lstRoot;
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