Changeset 80849 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Sep 17, 2019 9:46:51 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133419
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/Makefile.kmk
r80663 r80849 29 29 VBoxSharedClipboard_DEFS = \ 30 30 VBOX_WITH_HGCM \ 31 $(if $(VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST),VBOX_WITH_SHARED_CLIPBOARD_URI_LIST,)31 $(if $(VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS),VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS,) 32 32 VBoxSharedClipboard_INCS.win = \ 33 33 $(VBOX_PATH_SDK) … … 44 44 VBoxSharedClipboardSvc-darwin.cpp \ 45 45 darwin-pasteboard.cpp 46 ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST46 ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 47 47 VBoxSharedClipboard_DEFS += VBOX_WITH_SHARED_CLIPBOARD_HOST 48 48 VBoxSharedClipboard_SOURCES += \ -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-darwin.cpp
r80847 r80849 214 214 } 215 215 216 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST216 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 217 217 if (pFormats->uFormats & VBOX_SHCL_FMT_URI_LIST) /* No URI support yet. */ 218 218 return VINF_SUCCESS; … … 276 276 } 277 277 278 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST278 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 279 279 int SharedClipboardSvcImplURIReadDir(PSHCLCLIENT pClient, PSHCLDIRDATA pDirData) 280 280 { … … 312 312 return VERR_NOT_IMPLEMENTED; 313 313 } 314 #endif /* VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/315 314 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 315 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-internal.h
r80845 r80849 39 39 using namespace HGCM; 40 40 41 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST41 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 42 42 struct SHCLCLIENTSTATE; 43 #endif /* VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/43 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 44 44 45 45 /** … … 111 111 * Needed for events which are not bound to a specific transfer. */ 112 112 SHCLEVENTSOURCE Events; 113 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST113 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 114 114 /** URI context data. */ 115 115 SHCLURICTX URI; … … 196 196 int sharedClipboardSvcClientWakeup(PSHCLCLIENT pClient); 197 197 198 # ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST198 # ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 199 199 int sharedClipboardSvcURITransferStart(PSHCLCLIENT pClient, 200 200 SHCLURITRANSFERDIR enmDir, SHCLSOURCE enmSource, 201 201 PSHCLURITRANSFER *ppTransfer); 202 202 bool sharedClipboardSvcURIMsgIsAllowed(uint32_t uMode, uint32_t uMsg); 203 # endif /* VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/203 # endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 204 204 205 205 /* … … 221 221 int SharedClipboardSvcImplSync(PSHCLCLIENT pClient); 222 222 223 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST223 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 224 224 int sharedClipboardSvcURITransferOpen(PSHCLPROVIDERCTX pCtx); 225 225 DECLCALLBACK(int) sharedClipboardSvcURITransferClose(PSHCLPROVIDERCTX pCtx); … … 251 251 int SharedClipboardSvcImplURITransferCreate(PSHCLCLIENT pClient, PSHCLURITRANSFER pTransfer); 252 252 int SharedClipboardSvcImplURITransferDestroy(PSHCLCLIENT pClient, PSHCLURITRANSFER pTransfer); 253 #endif /*VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/253 #endif /*VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 254 254 255 255 /* Host unit testing interface */ -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-utils.cpp
r80847 r80849 32 32 33 33 34 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST34 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 35 35 /** 36 36 * Returns whether a HGCM message is allowed in a certain service mode or not. … … 150 150 } 151 151 #endif 152 #endif /* VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/152 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 153 153 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r80847 r80849 26 26 #include <VBox/GuestHost/clipboard-helper.h> 27 27 #include <VBox/GuestHost/SharedClipboard-win.h> 28 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST28 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 29 29 # include <VBox/GuestHost/SharedClipboard-uri.h> 30 30 #endif … … 37 37 #include <iprt/semaphore.h> 38 38 #include <iprt/thread.h> 39 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST39 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 40 40 # include <iprt/utf16.h> 41 41 #endif … … 45 45 46 46 #include "VBoxSharedClipboardSvc-internal.h" 47 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST47 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 48 48 # include "VBoxSharedClipboardSvc-uri.h" 49 49 #endif … … 336 336 break; 337 337 338 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST338 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 339 339 if (fFormats & VBOX_SHCL_FMT_URI_LIST) 340 340 { … … 367 367 SharedClipboardWinClose(); 368 368 } 369 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST369 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 370 370 } 371 371 #endif … … 492 492 } 493 493 494 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST494 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 495 495 if (RT_SUCCESS(rc)) 496 496 { … … 525 525 LogFunc(("Message loop finished. GetMessage returned %d, message id: %d \n", msgret, msg.message)); 526 526 527 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST527 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 528 528 OleSetClipboard(NULL); /* Make sure to flush the clipboard on destruction. */ 529 529 OleUninitialize(); … … 590 590 int SharedClipboardSvcImplInit(void) 591 591 { 592 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST592 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 593 593 HRESULT hr = OleInitialize(NULL); 594 594 if (FAILED(hr)) … … 606 606 void SharedClipboardSvcImplDestroy(void) 607 607 { 608 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST608 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 609 609 OleSetClipboard(NULL); /* Make sure to flush the clipboard on destruction. */ 610 610 OleUninitialize(); … … 812 812 } 813 813 } 814 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST814 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 815 815 else if (pData->uFormat & VBOX_SHCL_FMT_URI_LIST) 816 816 { 817 817 AssertFailed(); /** @todo */ 818 818 } 819 #endif /* VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/819 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 820 820 SharedClipboardWinClose(); 821 821 } … … 842 842 } 843 843 844 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST844 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 845 845 int SharedClipboardSvcImplURITransferCreate(PSHCLCLIENT pClient, PSHCLURITRANSFER pTransfer) 846 846 { … … 860 860 return VINF_SUCCESS; 861 861 } 862 #endif /* VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/863 862 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 863 -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r80847 r80849 204 204 RT_NOREF(pCmdCtx); 205 205 206 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST206 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 207 207 if (pFormats->uFormats & VBOX_SHCL_FMT_URI_LIST) /* No URI support yet. */ 208 208 return VINF_SUCCESS; … … 389 389 } 390 390 391 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST391 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 392 392 int SharedClipboardSvcImplURITransferCreate(PSHCLCLIENT pClient, PSHCLURITRANSFER pTransfer) 393 393 { -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp
r80847 r80849 84 84 * 85 85 * Since VBox x.x.x transferring files via Shared Clipboard is supported. 86 * See the VBOX_WITH_SHARED_CLIPBOARD_ URI_LISTdefine for supported / enabled86 * See the VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS define for supported / enabled 87 87 * platforms. This is called "URI transfers". 88 88 * … … 214 214 215 215 #include "VBoxSharedClipboardSvc-internal.h" 216 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST216 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 217 217 # include "VBoxSharedClipboardSvc-uri.h" 218 218 #endif … … 1099 1099 AssertPtr(pClient); 1100 1100 1101 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST1101 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1102 1102 PSHCLURITRANSFER pTransfer = SharedClipboardURICtxGetTransfer(&pClient->URI, 0 /* Index*/); 1103 1103 if (pTransfer) … … 1149 1149 { 1150 1150 rc = SharedClipboardSvcImplConnect(pClient, VBoxSvcClipboardGetHeadless()); 1151 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST1151 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1152 1152 if (RT_SUCCESS(rc)) 1153 1153 rc = SharedClipboardURICtxInit(&pClient->URI); … … 1375 1375 if (RT_SUCCESS(rc)) 1376 1376 { 1377 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST1377 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1378 1378 if (uFormat == VBOX_SHCL_FMT_URI_LIST) 1379 1379 { … … 1385 1385 else 1386 1386 { 1387 #endif /* VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST*/1387 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 1388 1388 void *pv; 1389 1389 uint32_t cb; … … 1458 1458 } 1459 1459 } 1460 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST1460 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1461 1461 } 1462 1462 #endif … … 1475 1475 default: 1476 1476 { 1477 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST1477 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1478 1478 rc = sharedClipboardSvcURIHandler(pClient, callHandle, u32Function, cParms, paParms, tsArrival); 1479 1479 #else … … 1537 1537 LogFlowFuncEnter(); 1538 1538 1539 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST1539 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1540 1540 pClientState->URI.enmTransferDir = SHCLURITRANSFERDIR_UNKNOWN; 1541 1541 #else … … 1598 1598 default: 1599 1599 { 1600 #ifdef VBOX_WITH_SHARED_CLIPBOARD_ URI_LIST1600 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 1601 1601 rc = sharedClipboardSvcURIHostHandler(u32Function, cParms, paParms); 1602 1602 #else
Note:
See TracChangeset
for help on using the changeset viewer.