Changeset 103442 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Feb 19, 2024 1:51:37 PM (9 months ago)
- Location:
- trunk/src/VBox/HostServices/SharedClipboard
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp
r102954 r103442 2410 2410 2411 2411 rc = ShClTransferInit(pTransfer); 2412 if (RT_SUCCESS(rc))2413 {2414 /* Sanity: Make sure that the transfer we're gonna report as INITIALIZED to the guest2415 * actually has some root entries set, as the guest can query for those at any time then. */2416 if (enmDir == SHCLTRANSFERDIR_TO_REMOTE)2417 AssertMsgStmt(ShClTransferRootsCount(pTransfer), ("Transfer has no root entries set\n"), rc = VERR_WRONG_ORDER);2418 }2419 2412 } 2420 2413 else -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp
r103363 r103442 289 289 290 290 /** 291 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize d291 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize 292 292 * 293 293 * For G->H: Called on transfer intialization to notify the "in-flight" IDataObject about a data transfer. … … 296 296 * @thread Service main thread. 297 297 */ 298 static DECLCALLBACK(void) shClSvcWinTransferOnInitialize dCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx)298 static DECLCALLBACK(void) shClSvcWinTransferOnInitializeCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx) 299 299 { 300 300 LogFlowFuncEnter(); … … 346 346 347 347 LogFlowFuncLeaveRC(rc); 348 return rc; 348 349 } 349 350 … … 857 858 pClient->Transfers.Callbacks.cbUser = sizeof(SHCLCONTEXT); 858 859 859 pClient->Transfers.Callbacks.pfnOnCreated 860 pClient->Transfers.Callbacks.pfnOnInitialize d = shClSvcWinTransferOnInitializedCallback;861 pClient->Transfers.Callbacks.pfnOnDestroy 860 pClient->Transfers.Callbacks.pfnOnCreated = shClSvcWinTransferOnCreatedCallback; 861 pClient->Transfers.Callbacks.pfnOnInitialize = shClSvcWinTransferOnInitializeCallback; 862 pClient->Transfers.Callbacks.pfnOnDestroy = shClSvcWinTransferOnDestroyCallback; 862 863 #endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */ 863 864 } -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r103323 r103442 89 89 #ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS 90 90 static DECLCALLBACK(void) shClSvcX11TransferOnCreatedCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx); 91 static DECLCALLBACK( void)shClSvcX11TransferOnInitCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx);91 static DECLCALLBACK(int) shClSvcX11TransferOnInitCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx); 92 92 static DECLCALLBACK(void) shClSvcX11TransferOnDestroyCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx); 93 93 static DECLCALLBACK(void) shClSvcX11TransferOnUnregisteredCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx, PSHCLTRANSFERCTX pTransferCtx); … … 178 178 179 179 pClient->Transfers.Callbacks.pfnOnCreated = shClSvcX11TransferOnCreatedCallback; 180 pClient->Transfers.Callbacks.pfnOnInitialize d= shClSvcX11TransferOnInitCallback;180 pClient->Transfers.Callbacks.pfnOnInitialize = shClSvcX11TransferOnInitCallback; 181 181 pClient->Transfers.Callbacks.pfnOnDestroy = shClSvcX11TransferOnDestroyCallback; 182 182 pClient->Transfers.Callbacks.pfnOnUnregistered = shClSvcX11TransferOnUnregisteredCallback; … … 411 411 412 412 /** 413 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize d413 * @copydoc SHCLTRANSFERCALLBACKS::pfnOnInitialize 414 414 * 415 415 * For G->H: Starts the HTTP server if not done yet and registers the transfer with it. … … 418 418 * @thread Service main thread. 419 419 */ 420 static DECLCALLBACK( void) shClSvcX11TransferOnInitCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx)420 static DECLCALLBACK(int) shClSvcX11TransferOnInitCallback(PSHCLTRANSFERCALLBACKCTX pCbCtx) 421 421 { 422 422 LogFlowFuncEnter(); … … 455 455 456 456 LogFlowFuncLeaveRC(rc); 457 return rc; 457 458 } 458 459
Note:
See TracChangeset
for help on using the changeset viewer.