VirtualBox

Ignore:
Timestamp:
May 23, 2023 3:38:52 PM (20 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Added new testcase for the HTTP server in combination with the Shared Clipboard API, various updates and general improvements. bugref:9437

Location:
trunk/src/VBox/HostServices/SharedClipboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-transfers.cpp

    r98103 r99937  
    18681868            RT_ZERO(creationCtx);
    18691869
    1870             if (enmDir == SHCLTRANSFERDIR_FROM_REMOTE)
     1870            if (enmDir == SHCLTRANSFERDIR_FROM_REMOTE) /* Guest -> Host. */
    18711871            {
    18721872                creationCtx.Interface.pfnRootsGet      = shClSvcTransferIfaceGetRoots;
     
    18811881                creationCtx.Interface.pfnObjRead       = shClSvcTransferIfaceObjRead;
    18821882            }
    1883             else if (enmDir == SHCLTRANSFERDIR_TO_REMOTE)
     1883            else if (enmDir == SHCLTRANSFERDIR_TO_REMOTE) /* Host -> Guest. */
    18841884            {
    18851885                creationCtx.Interface.pfnListHdrWrite   = shClSvcTransferIfaceListHdrWrite;
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp

    r98103 r99937  
    505505    RT_NOREF(pBackend);
    506506#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP
    507     return ShClHttpTransferRegister(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
     507    return ShClHttpTransferRegisterAndMaybeStart(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
    508508#else
    509509    RT_NOREF(pClient, pTransfer);
     
    516516    RT_NOREF(pBackend);
    517517#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS_HTTP
    518     return ShClHttpTransferUnregister(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
     518    return ShClHttpTransferUnregisterAndMaybeStop(&pClient->State.pCtx->X11.HttpCtx, pTransfer);
    519519#else
    520520    RT_NOREF(pClient, pTransfer);
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