Changeset 82462 in vbox for trunk/src/VBox
- Timestamp:
- Dec 6, 2019 2:22:03 PM (5 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp
r81960 r82462 152 152 153 153 /* The guest wants to write local data to the host? */ 154 if (enmDir == SHCLTRANSFERDIR_ WRITE)154 if (enmDir == SHCLTRANSFERDIR_TO_REMOTE) 155 155 { 156 156 rc = SharedClipboardWinGetRoots(&pCtx->Win, pTransfer); 157 157 } 158 158 /* The guest wants to read data from a remote source. */ 159 else if (enmDir == SHCLTRANSFERDIR_ READ)159 else if (enmDir == SHCLTRANSFERDIR_FROM_REMOTE) 160 160 { 161 161 /* The IDataObject *must* be created on the same thread as our (proxy) window, so post a message to it -
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp
r81960 r82462 1815 1815 /* If this is a read transfer (reading data from host), set the interface to use 1816 1816 * our VbglR3 routines here. */ 1817 if (enmDir == SHCLTRANSFERDIR_ READ)1817 if (enmDir == SHCLTRANSFERDIR_FROM_REMOTE) 1818 1818 { 1819 1819 SHCLPROVIDERCREATIONCTX creationCtx; … … 1852 1852 LogRel2(("Shared Clipboard: Transfer ID=%RU16 (%s %s) successfully started\n", 1853 1853 uTransferID, 1854 enmDir == SHCLTRANSFERDIR_ READ? "reading from" : "writing to",1855 enmSource == SHCLSOURCE_LOCAL ? "local" : "remote"));1854 enmDir == SHCLTRANSFERDIR_FROM_REMOTE ? "reading from" : "writing to", 1855 enmSource == SHCLSOURCE_LOCAL ? "local" : "remote")); 1856 1856 } 1857 1857 else … … 1952 1952 1953 1953 /* The host announces the transfer direction from its point of view, so inverse the direction here. */ 1954 if (enmDir == SHCLTRANSFERDIR_ WRITE)1954 if (enmDir == SHCLTRANSFERDIR_TO_REMOTE) 1955 1955 { 1956 enmDir = SHCLTRANSFERDIR_ READ;1956 enmDir = SHCLTRANSFERDIR_FROM_REMOTE; 1957 1957 enmSource = SHCLSOURCE_REMOTE; 1958 1958 } 1959 else if (enmDir == SHCLTRANSFERDIR_ READ)1959 else if (enmDir == SHCLTRANSFERDIR_FROM_REMOTE) 1960 1960 { 1961 enmDir = SHCLTRANSFERDIR_ WRITE;1961 enmDir = SHCLTRANSFERDIR_TO_REMOTE; 1962 1962 enmSource = SHCLSOURCE_LOCAL; 1963 1963 } -
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
r82460 r82462 818 818 * Make sure the transfer direction matches the open/create parameters. 819 819 */ 820 if (pTransfer->State.enmDir == SHCLTRANSFERDIR_ READ)820 if (pTransfer->State.enmDir == SHCLTRANSFERDIR_FROM_REMOTE) 821 821 { 822 822 if (pOpenCreateParms->fCreate & SHCL_OBJ_CF_ACCESS_READ) /* Read access wanted? */ … … 827 827 } 828 828 } 829 else if (pTransfer->State.enmDir == SHCLTRANSFERDIR_ WRITE)829 else if (pTransfer->State.enmDir == SHCLTRANSFERDIR_TO_REMOTE) 830 830 { 831 831 if (pOpenCreateParms->fCreate & SHCL_OBJ_CF_ACCESS_WRITE) /* Write access wanted? */ … … 854 854 /* Only if this is a read transfer (locally) we're able to actually write to files 855 855 * (we're reading from the source). */ 856 const bool fWritable = pTransfer->State.enmDir == SHCLTRANSFERDIR_ READ;856 const bool fWritable = pTransfer->State.enmDir == SHCLTRANSFERDIR_FROM_REMOTE; 857 857 858 858 uint64_t fOpen; -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp
r81829 r82462 1396 1396 1397 1397 if ( ShClTransferGetSource(pTransfer) == SHCLSOURCE_LOCAL 1398 && ShClTransferGetDir(pTransfer) == SHCLTRANSFERDIR_ WRITE)1398 && ShClTransferGetDir(pTransfer) == SHCLTRANSFERDIR_TO_REMOTE) 1399 1399 { 1400 1400 /* Get roots if this is a local write transfer (host -> guest). */ … … 2047 2047 if (!ShClTransferCtxTransfersMaximumReached(&pClient->TransferCtx)) 2048 2048 { 2049 LogRel2(("Shared Clipboard: Starting %s transfer ...\n", enmDir == SHCLTRANSFERDIR_ READ? "read" : "write"));2049 LogRel2(("Shared Clipboard: Starting %s transfer ...\n", enmDir == SHCLTRANSFERDIR_FROM_REMOTE ? "read" : "write")); 2050 2050 2051 2051 PSHCLTRANSFER pTransfer; … … 2059 2059 RT_ZERO(creationCtx); 2060 2060 2061 if (enmDir == SHCLTRANSFERDIR_ READ)2061 if (enmDir == SHCLTRANSFERDIR_FROM_REMOTE) 2062 2062 { 2063 2063 rc = shClSvcTransferAreaRegister(&pClient->State, pTransfer); … … 2079 2079 } 2080 2080 } 2081 else if (enmDir == SHCLTRANSFERDIR_ WRITE)2081 else if (enmDir == SHCLTRANSFERDIR_TO_REMOTE) 2082 2082 { 2083 2083 creationCtx.Interface.pfnListHdrWrite = shClSvcTransferIfaceListHdrWrite; -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r81843 r82462 364 364 PSHCLTRANSFER pTransfer; 365 365 int rc = shClSvcTransferStart(pCtx->pClient, 366 SHCLTRANSFERDIR_ READ, SHCLSOURCE_REMOTE,366 SHCLTRANSFERDIR_FROM_REMOTE, SHCLSOURCE_REMOTE, 367 367 &pTransfer); 368 368 if (RT_SUCCESS(rc)) -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r81960 r82462 1244 1244 if (fFormats & VBOX_SHCL_FMT_URI_LIST) 1245 1245 { 1246 rc = shClSvcTransferStart(pClient, SHCLTRANSFERDIR_ WRITE, SHCLSOURCE_LOCAL,1246 rc = shClSvcTransferStart(pClient, SHCLTRANSFERDIR_TO_REMOTE, SHCLSOURCE_LOCAL, 1247 1247 NULL /* pTransfer */); 1248 1248 if (RT_FAILURE(rc)) -
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardTransfers.cpp
r82460 r82462 235 235 RTTESTI_CHECK_RC_OK(rc); 236 236 237 rc = ShClTransferInit(pTransfer, 0 /* ID */, SHCLTRANSFERDIR_ READ, SHCLSOURCE_LOCAL);237 rc = ShClTransferInit(pTransfer, 0 /* ID */, SHCLTRANSFERDIR_FROM_REMOTE, SHCLSOURCE_LOCAL); 238 238 RTTESTI_CHECK_RC_OK(rc); 239 239
Note:
See TracChangeset
for help on using the changeset viewer.