VirtualBox

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


Ignore:
Timestamp:
May 24, 2023 10:37:12 AM (21 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Moved code for handling local filesystems with transfers into an own provider interface implementation. This cleans up the generic code a lot. bugref:9437

File:
1 edited

Legend:

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

    r99937 r99951  
    18501850            if (RT_SUCCESS(rc))
    18511851            {
     1852                SHCLTXPROVIDERCREATIONCTX creationCtx;
     1853                RT_ZERO(creationCtx);
     1854
     1855                /* Assign local provider first and overwrite interface methods below if needed. */
     1856                VBClTransferQueryIfaceLocal(&creationCtx.Interface);
     1857
    18521858                /* If this is a read transfer (reading data from host), set the interface to use
    18531859                 * our VbglR3 routines here. */
    18541860                if (enmDir == SHCLTRANSFERDIR_FROM_REMOTE)
    18551861                {
    1856                     SHCLTXPROVIDERCREATIONCTX creationCtx;
    1857                     RT_ZERO(creationCtx);
    1858 
    18591862                    creationCtx.Interface.pfnRootsGet      = vbglR3ClipboardTransferIfaceGetRoots;
    18601863
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