VirtualBox

Changeset 100663 in vbox


Ignore:
Timestamp:
Jul 20, 2023 10:20:05 AM (17 months ago)
Author:
vboxsync
Message:

Shared Clipboard/VbglR3: Renamed VbglR3ClipboardTransferStatusReplyEx() -> VbglR3ClipboardTransferSendStatusEx(), as the function can be also called without any former call from the host. bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibClipboard.cpp

    r100657 r100663  
    922922
    923923/**
    924  * Replies to a transfer report from the host, extended version.
     924 * Sends a transfer status to the host, extended version.
    925925 *
    926926 * @returns VBox status code.
     
    928928 * @param   uCID                Context ID to use.
    929929 *                              The transfer ID is part of this.
    930  * @param   uStatus             Tranfer status to reply.
    931  * @param   rcTransfer          Result code (rc) to reply.
    932  */
    933 static int vbglR3ClipboardTransferStatusReplyEx(PVBGLR3SHCLCMDCTX pCtx, uint64_t uCID,
    934                                                 SHCLTRANSFERSTATUS uStatus, int rcTransfer)
     930 * @param   uStatus             Tranfer status to send.
     931 * @param   rcTransfer          Result code (rc) to send.
     932 */
     933static int vbglR3ClipboardTransferSendStatusEx(PVBGLR3SHCLCMDCTX pCtx, uint64_t uCID,
     934                                               SHCLTRANSFERSTATUS uStatus, int rcTransfer)
    935935{
    936936    AssertPtrReturn(pCtx,      VERR_INVALID_POINTER);
     
    970970    RT_NOREF(pTransfer); /* Currently not used (yet). */
    971971
    972     int rc = vbglR3ClipboardTransferStatusReplyEx(pCtx, pCtx->idContext, uStatus, rcTransfer);
     972    int rc = vbglR3ClipboardTransferSendStatusEx(pCtx, pCtx->idContext, uStatus, rcTransfer);
    973973
    974974    LogFlowFuncLeaveRC(rc);
     
    21722172    LogRel2(("Shared Clipboard: Requesting new host -> guest transfer from host\n"));
    21732173
    2174     int rc = vbglR3ClipboardTransferStatusReplyEx(pCmdCtx, 0 /* Context ID not needed */,
    2175                                                   SHCLTRANSFERSTATUS_REQUESTED, VINF_SUCCESS);
     2174    int rc = vbglR3ClipboardTransferSendStatusEx(pCmdCtx, 0 /* Context ID not needed */,
     2175                                                 SHCLTRANSFERSTATUS_REQUESTED, VINF_SUCCESS);
    21762176    LogFlowFuncLeaveRC(rc);
    21772177    return rc;
     
    26742674        {
    26752675            /* Report transfer-specific error back to the host. */
    2676             int rc2 = vbglR3ClipboardTransferStatusReplyEx(pCmdCtx, pCmdCtx->idContext, SHCLTRANSFERSTATUS_ERROR, rc);
     2676            int rc2 = vbglR3ClipboardTransferSendStatusEx(pCmdCtx, pCmdCtx->idContext, SHCLTRANSFERSTATUS_ERROR, rc);
    26772677            AssertRC(rc2);
    26782678        }
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