Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/SharedClipboard-transfers.h
r103619 r104310 1202 1202 int ShClTransferRootsInitFromStringList(PSHCLTRANSFER pTransfer, const char *pszRoots, size_t cbRoots); 1203 1203 int ShClTransferRootsInitFromStringListUnicode(PSHCLTRANSFER pTransfer, PRTUTF16 pwszRoots, size_t cbRoots); 1204 int ShClTransferRootsInitFrom File(PSHCLTRANSFER pTransfer, const char *pszFile);1204 int ShClTransferRootsInitFromPath(PSHCLTRANSFER pTransfer, const char *pszPath); 1205 1205 uint64_t ShClTransferRootsCount(PSHCLTRANSFER pTransfer); 1206 1206 PCSHCLLISTENTRY ShClTransferRootsEntryGet(PSHCLTRANSFER pTransfer, uint64_t uIndex); -
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
r103618 r104310 2051 2051 2052 2052 /** 2053 * Initializes a single fileas a transfer root.2053 * Initializes a single path as a transfer root. 2054 2054 * 2055 2055 * @returns VBox status code. 2056 2056 * @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 */ 2061 int ShClTransferRootsInitFromPath(PSHCLTRANSFER pTransfer, const char *pszPath) 2062 { 2063 AssertPtrReturn(pTransfer, VERR_INVALID_POINTER); 2064 AssertPtrReturn(pszPath, VERR_INVALID_POINTER); 2065 2063 2066 char *pszRoots = NULL; 2064 2065 LogFlowFuncEnter(); 2066 2067 int rc = RTStrAAppend(&pszRoots, pszFile); 2067 int rc = RTStrAAppend(&pszRoots, pszPath); 2068 2068 AssertRCReturn(rc, rc); 2069 2069 rc = RTStrAAppend(&pszRoots, SHCL_TRANSFER_URI_LIST_SEP_STR);
Note:
See TracChangeset
for help on using the changeset viewer.