VirtualBox

Ignore:
Timestamp:
May 31, 2019 3:23:14 PM (6 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/ClipboardProvider.cpp

    r78809 r78897  
    5252 *
    5353 * @returns New Shared Clipboard provider instance.
    54  * @param   enmSource           Source type to create provider for.
     54 * @param   pCtx                Pointer to creation context.
    5555 */
    5656/* static */
    57 SharedClipboardProvider *SharedClipboardProvider::Create(SourceType enmSource)
     57SharedClipboardProvider *SharedClipboardProvider::Create(PSHAREDCLIPBOARDPROVIDERCREATIONCTX pCtx)
    5858{
     59    AssertPtrReturn(pCtx, NULL);
     60
    5961    SharedClipboardProvider *pProvider = NULL;
    6062
    61     switch (enmSource)
     63    switch (pCtx->enmSource)
    6264    {
    6365#ifdef VBOX_WITH_SHARED_CLIPBOARD_GUEST
    64         case SourceType_VbglR3:
    65             pProvider = new SharedClipboardProviderVbglR3();
     66        case SHAREDCLIPBOARDPROVIDERSOURCE_VBGLR3:
     67            pProvider = new SharedClipboardProviderVbglR3(pCtx->u.VBGLR3.uClientID);
    6668            break;
    6769#endif
    6870
    6971#ifdef VBOX_WITH_SHARED_CLIPBOARD_HOST
    70         case SourceType_HostService:
     72        case SHAREDCLIPBOARDPROVIDERSOURCE_HOSTSERVICE:
    7173            pProvider = new SharedClipboardProviderHostService();
    7274            break;
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