VirtualBox

Ignore:
Timestamp:
Oct 28, 2019 10:09:35 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard: Got rid of the protocol version in VBOX_SHCL_GUEST_FN_CONNECT and internals; instead use the get / query features bit field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r81369 r81559  
    960960    const PSHCLWINCTX pWinCtx = &pCtx->Win;
    961961
    962     LogRel2(("Shared Clipboard: Worker loop running, using protocol v%RU32\n", pCtx->CmdCtx.uProtocolVer));
     962    LogRel2(("Shared Clipboard: Worker loop running\n"));
    963963
    964964#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
     
    975975    int rc;
    976976
    977     LogFlowFunc(("uProtocolVer=%RU32\n", pCtx->CmdCtx.uProtocolVer));
    978 
    979977    uint32_t uMsg;
    980978    uint32_t uFormats;
     
    985983        PVBGLR3CLIPBOARDEVENT pEvent = NULL;
    986984
    987         LogFlowFunc(("Waiting for host message (protocol v%RU32) ...\n", pCtx->CmdCtx.uProtocolVer));
    988 
    989         if (pCtx->CmdCtx.uProtocolVer == 0) /* Legacy protocol */
     985        LogFlowFunc(("Waiting for host message (fHostFeatures=%#RX64) ...\n", pCtx->CmdCtx.fHostFeatures));
     986
     987        if (pCtx->CmdCtx.fUseLegacyProtocol)
    990988        {
    991989            rc = VbglR3ClipboardGetHostMsgOld(pCtx->CmdCtx.uClientID, &uMsg, &uFormats);
     
    10301028            }
    10311029        }
    1032         else /* Protocol >= v1. */
     1030        else /* Host service has peeking for messages support. */
    10331031        {
    10341032            pEvent = (PVBGLR3CLIPBOARDEVENT)RTMemAllocZ(sizeof(VBGLR3CLIPBOARDEVENT));
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