VirtualBox

Changeset 80918 in vbox for trunk/src/VBox/GuestHost


Ignore:
Timestamp:
Sep 20, 2019 10:27:30 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Update.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp

    r80907 r80918  
    22102210
    22112211/**
     2212 * Returns the transfer's direction.
     2213 *
     2214 * @returns The transfer's direction.
     2215 * @param   pTransfer           Clipboard transfer to return direction for.
     2216 */
     2217SHCLTRANSFERDIR SharedClipboardTransferGetDir(PSHCLTRANSFER pTransfer)
     2218{
     2219    AssertPtrReturn(pTransfer, SHCLTRANSFERDIR_UNKNOWN);
     2220
     2221    return pTransfer->State.enmDir;
     2222}
     2223
     2224/**
    22122225 * Returns the transfer's source.
    22132226 *
     
    23882401    AssertPtrReturn(pTransferCtx, VERR_INVALID_POINTER);
    23892402
    2390     LogFlowFunc(("%p\n", pTransferCtx));
     2403    LogFlowFunc(("pTransferCtx=%p\n", pTransferCtx));
    23912404
    23922405    int rc = RTCritSectInit(&pTransferCtx->CritSect);
     
    24152428    AssertPtrReturnVoid(pTransferCtx);
    24162429
    2417     LogFlowFunc(("%p\n", pTransferCtx));
     2430    LogFlowFunc(("pTransferCtx=%p\n", pTransferCtx));
    24182431
    24192432    RTCritSectDelete(&pTransferCtx->CritSect);
     
    26232636 * @param   pTransferCtx                Transfer context to cleanup transfers for.
    26242637 */
    2625 void SharedClipboardTransferCtxTransfersCleanup(PSHCLTRANSFERCTX pTransferCtx)
     2638void SharedClipboardTransferCtxCleanup(PSHCLTRANSFERCTX pTransferCtx)
    26262639{
    26272640    AssertPtrReturnVoid(pTransferCtx);
    26282641
    2629     LogFlowFunc(("cTransfers=%RU32, cRunning=%RU32\n", pTransferCtx->cTransfers, pTransferCtx->cRunning));
     2642    LogFlowFunc(("pTransferCtx=%p, cTransfers=%RU32, cRunning=%RU32\n",
     2643                 pTransferCtx, pTransferCtx->cTransfers, pTransferCtx->cRunning));
    26302644
    26312645    /* Remove all transfers which are not in a running state (e.g. only announced). */
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-win.cpp

    r80862 r80918  
    9999    int rc;
    100100
    101     LogFlowFuncEnter();
    102 
    103101    const BOOL fRc = CloseClipboard();
    104102    if (RT_UNLIKELY(!fRc))
     
    118116        rc = VINF_SUCCESS;
    119117
     118    LogFlowFuncLeaveRC(rc);
    120119    return rc;
    121120}
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