Changeset 78897 in vbox for trunk/src/VBox/GuestHost/SharedClipboard/ClipboardProvider.cpp
- Timestamp:
- May 31, 2019 3:23:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/ClipboardProvider.cpp
r78809 r78897 52 52 * 53 53 * @returns New Shared Clipboard provider instance. 54 * @param enmSource Source type to create provider for.54 * @param pCtx Pointer to creation context. 55 55 */ 56 56 /* static */ 57 SharedClipboardProvider *SharedClipboardProvider::Create( SourceType enmSource)57 SharedClipboardProvider *SharedClipboardProvider::Create(PSHAREDCLIPBOARDPROVIDERCREATIONCTX pCtx) 58 58 { 59 AssertPtrReturn(pCtx, NULL); 60 59 61 SharedClipboardProvider *pProvider = NULL; 60 62 61 switch ( enmSource)63 switch (pCtx->enmSource) 62 64 { 63 65 #ifdef VBOX_WITH_SHARED_CLIPBOARD_GUEST 64 case S ourceType_VbglR3:65 pProvider = new SharedClipboardProviderVbglR3( );66 case SHAREDCLIPBOARDPROVIDERSOURCE_VBGLR3: 67 pProvider = new SharedClipboardProviderVbglR3(pCtx->u.VBGLR3.uClientID); 66 68 break; 67 69 #endif 68 70 69 71 #ifdef VBOX_WITH_SHARED_CLIPBOARD_HOST 70 case S ourceType_HostService:72 case SHAREDCLIPBOARDPROVIDERSOURCE_HOSTSERVICE: 71 73 pProvider = new SharedClipboardProviderHostService(); 72 74 break;
Note:
See TracChangeset
for help on using the changeset viewer.