VirtualBox

Changeset 87655 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Feb 9, 2021 1:01:23 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142697
Message:

Shared Clipboard/Transfers: Added VbglR3ClipboardTransferSetCallbacks(). ​bugref:9437

File:
1 edited

Legend:

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

    r87641 r87655  
    107107
    108108#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
     109    /* Init callback table. */
     110    RT_ZERO(pCtx->Transfers.Callbacks);
    109111    /* Indicate that this guest supports Shared Clipboard file transfers. */
    110112    pCtx->fGuestFeatures |= VBOX_SHCL_GF_0_TRANSFERS;
     
    19091911}
    19101912
     1913/**
     1914 * Sets transfer callbacks of a Shared Clipboard command context.
     1915 *
     1916 * @param   pCmdCtx             Command context to set callbacks for.
     1917 * @param   pCallbacks          Pointer to callback table to set.
     1918 */
     1919VBGLR3DECL(void) VbglR3ClipboardTransferSetCallbacks(PVBGLR3SHCLCMDCTX pCmdCtx,  PSHCLTRANSFERCALLBACKTABLE pCallbacks)
     1920{
     1921    AssertPtrReturnVoid(pCmdCtx);
     1922    AssertPtrReturnVoid(pCallbacks);
     1923
     1924    ShClTransferCopyCallbacks(&pCmdCtx->Transfers.Callbacks, pCallbacks);
     1925}
     1926
    19111927VBGLR3DECL(int) VbglR3ClipboardEventGetNextEx(uint32_t idMsg, uint32_t cParms,
    19121928                                              PVBGLR3SHCLCMDCTX pCmdCtx, PSHCLTRANSFERCTX pTransferCtx,
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