VirtualBox

Changeset 104310 in vbox for trunk


Ignore:
Timestamp:
Apr 12, 2024 10:10:49 AM (9 months ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Renamed ShClTransferRootsInitFromFile() -> ShClTransferRootsInitFromPath(). bugref:9437

Location:
trunk
Files:
2 edited

Legend:

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

    r103619 r104310  
    12021202int ShClTransferRootsInitFromStringList(PSHCLTRANSFER pTransfer, const char *pszRoots, size_t cbRoots);
    12031203int ShClTransferRootsInitFromStringListUnicode(PSHCLTRANSFER pTransfer, PRTUTF16 pwszRoots, size_t cbRoots);
    1204 int ShClTransferRootsInitFromFile(PSHCLTRANSFER pTransfer, const char *pszFile);
     1204int ShClTransferRootsInitFromPath(PSHCLTRANSFER pTransfer, const char *pszPath);
    12051205uint64_t ShClTransferRootsCount(PSHCLTRANSFER pTransfer);
    12061206PCSHCLLISTENTRY ShClTransferRootsEntryGet(PSHCLTRANSFER pTransfer, uint64_t uIndex);
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp

    r103618 r104310  
    20512051
    20522052/**
    2053  * Initializes a single file as a transfer root.
     2053 * Initializes a single path as a transfer root.
    20542054 *
    20552055 * @returns VBox status code.
    20562056 * @param   pTransfer           Transfer to set transfer list entries for.
    2057  * @param   pszFile             File to use as transfer root.
    2058  *
    2059  * @note    Convenience function, uses ShClTransferRootsSet() internally.
    2060  */
    2061 int ShClTransferRootsInitFromFile(PSHCLTRANSFER pTransfer, const char *pszFile)
    2062 {
     2057 * @param   pszPath             Path to use as transfer root. Can be a single file or a directory.
     2058 *
     2059 * @note    Convenience function, uses ShClTransferRootsInitFromStringList() internally.
     2060 */
     2061int ShClTransferRootsInitFromPath(PSHCLTRANSFER pTransfer, const char *pszPath)
     2062{
     2063    AssertPtrReturn(pTransfer, VERR_INVALID_POINTER);
     2064    AssertPtrReturn(pszPath, VERR_INVALID_POINTER);
     2065
    20632066    char *pszRoots = NULL;
    2064 
    2065     LogFlowFuncEnter();
    2066 
    2067     int rc = RTStrAAppend(&pszRoots, pszFile);
     2067    int rc = RTStrAAppend(&pszRoots, pszPath);
    20682068    AssertRCReturn(rc, rc);
    20692069    rc = RTStrAAppend(&pszRoots, SHCL_TRANSFER_URI_LIST_SEP_STR);
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