VirtualBox

Changeset 103480 in vbox for trunk/include


Ignore:
Timestamp:
Feb 20, 2024 3:21:35 PM (12 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Added a ShClTransferTransformPath() function to make the paths more uniform. bugref:9437

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-transfers.h

    r103442 r103480  
    345345typedef struct _SHCLOBJOPENCREATEPARMS
    346346{
    347     /** Path to object to open / create. */
     347    /** Path to object to open / create.
     348     *  Always stored as UNIX-style paths ('/').
     349     *  Backslashes ('\') can be part of a UNIX path though. */
    348350    char                       *pszPath;
    349351    /** Size (in bytes) of path to to object. */
     
    421423    /** Size (in bytes) of the listing path. */
    422424    uint32_t cbPath;
    423     /** Listing path (absolute). If empty or NULL the listing's root path will be opened. */
     425    /** Listing path (absolute). If empty or NULL the listing's root path will be opened.
     426     *  We always use UNIX-style paths. */
    424427    char    *pszPath;
    425428} SHCLLISTOPENPARMS;
     
    12661269int ShClPathSanitize(char *pszPath, size_t cbPath);
    12671270const char *ShClTransferStatusToStr(SHCLTRANSFERSTATUS enmStatus);
     1271int ShClTransferTransformPath(char *pszPath, size_t cbPath);
    12681272int ShClTransferValidatePath(const char *pcszPath, bool fMustExist);
    12691273int ShClTransferResolvePathAbs(PSHCLTRANSFER pTransfer, const char *pszPath, uint32_t fFlags, char **ppszResolved);
  • trunk/include/VBox/HostServices/VBoxClipboardSvc.h

    r100367 r103480  
    990990    /** pointer, in: Filter string. */
    991991    HGCMFunctionParameter pvFilter;
    992     /** pointer, in: Listing poth. If empty or NULL the listing's root path will be opened. */
     992    /** pointer, in: Listing path. If empty or NULL the listing's root path will be opened.
     993     *  We always use UNIX-style paths. */
    993994    HGCMFunctionParameter pvPath;
    994995    /** uint64_t, out: List handle. */
     
    11101111    /** uint64_t, out: Object handle. */
    11111112    HGCMFunctionParameter uHandle;
    1112     /** pointer, in: Absoulte path of object to open/create. */
     1113    /** pointer, in: Absoulte path of object to open/create.
     1114     *  We always use UNIX-style paths. */
    11131115    HGCMFunctionParameter szPath;
    11141116    /** uint32_t in: Open / Create flags of type SHCL_OBJ_CF_. */
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