VirtualBox

Changeset 2386 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Apr 27, 2007 9:59:46 AM (18 years ago)
Author:
vboxsync
Message:

Clipboard RDP channel

Location:
trunk/src/VBox/Main/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r2382 r2386  
    410410    static DECLCALLBACK(void)   vrdp_InterceptAudio (void *pvUser, uint32_t u32ClientId);
    411411    static DECLCALLBACK(void)   vrdp_InterceptUSB (void *pvUser, uint32_t u32ClientId, PFNVRDPUSBCALLBACK *ppfn, void **ppv);
     412    static DECLCALLBACK(void)   vrdp_InterceptClipboard (void *pvUser, uint32_t u32ClientId, PFNVRDPCLIPBOARDCALLBACK *ppfn, void **ppv);
    412413#else
    413414    static DECLCALLBACK(int)    vrdp_ClientLogon (void *pvUser, const char *pszUser, const char *pszPassword, const char *pszDomain);
     
    416417    static DECLCALLBACK(void)   vrdp_InterceptAudio (void *pvUser, bool keepHostAudio);
    417418    static DECLCALLBACK(void)   vrdp_InterceptUSB (void *pvUser, PFNVRDPUSBCALLBACK *ppfn, void **ppv);
     419    static DECLCALLBACK(void)   vrdp_InterceptClipboard (void *pvUser, PFNVRDPCLIPBOARDCALLBACK *ppfn, void **ppv);
    418420#endif /* VRDP_MC */
    419421
  • trunk/src/VBox/Main/include/ConsoleVRDPServer.h

    r300 r2386  
    2424
    2525#include "RemoteUSBBackend.h"
     26#include "hgcm/hgcm.h"
    2627
    2728#include <VBox/VRDPAuth.h>
     29
     30#include <VBox/HostServices/VBoxClipboardExt.h>
    2831
    2932// ConsoleVRDPServer
     
    6164    void waitRemoteUSBThreadEvent (unsigned cMillies);
    6265   
     66    void ClipboardCreate (uint32_t u32ClientId, PFNVRDPCLIPBOARDCALLBACK *ppfn, void **ppv);
     67    void ClipboardDelete (uint32_t u32ClientId);
    6368#else
    6469    void CreateUSBBackend (PFNVRDPUSBCALLBACK *ppfn, void **ppv);
     
    116121    static void (VBOXCALL *mpfnVRDPSendUpdate)      (HVRDPSERVER hServer, void *pvUpdate, uint32_t cbUpdate);
    117122    static void (VBOXCALL *mpfnVRDPQueryInfo)       (HVRDPSERVER hserver, uint32_t index, void *pvBuffer, uint32_t cbBuffer, uint32_t *pcbOut);
     123    static void (VBOXCALL *mpfnVRDPClipboard)       (HVRDPSERVER hserver, uint32_t u32Function, uint32_t u32Format, const void *pvData, uint32_t cbData);
    118124#endif
    119125
     
    123129    int lockConsoleVRDPServer (void);
    124130    void unlockConsoleVRDPServer (void);
    125 
     131   
     132    int mcClipboardRefs;
     133    HGCMSVCEXTHANDLE mhClipboard;
     134    PFNVRDPCLIPBOARDEXTCALLBACK mpfnClipboardCallback;
     135
     136    RTSEMEVENTMULTI   mEventClipboardData;
     137    void             *mpvClipboardData;
     138    uint32_t          mcbClipboardData;
     139    volatile uint32_t mfu32ClipboardWaitData;
     140
     141    static DECLCALLBACK(int) ClipboardCallback (void *pvCallback, uint32_t u32ClientId, uint32_t u32Function, uint32_t u32Format, const void *pvData, uint32_t cbData);
     142    static DECLCALLBACK(int) ClipboardServiceExtension (void *pvExtension, uint32_t u32Function, void *pvParm, uint32_t cbParms);
     143   
    126144#ifdef VBOX_WITH_USB
    127145    RemoteUSBBackend *usbBackendFindByUUID (const Guid *pGuid);
  • trunk/src/VBox/Main/include/hgcm/HGCM.h

    r1711 r2386  
    3333#define HGCM_SSM_VERSION    2
    3434
     35/* Handle of a HGCM service extension. */
     36struct _HGCMSVCEXTHANDLEDATA;
     37typedef struct _HGCMSVCEXTHANDLEDATA *HGCMSVCEXTHANDLE;
     38
    3539__BEGIN_DECLS
    3640int HGCMHostInit (void);
     
    4044
    4145int HGCMHostLoad (const char *pszServiceName, const char *pszServiceLibrary);
     46
     47int HGCMHostRegisterServiceExtension (HGCMSVCEXTHANDLE *pHandle, const char *pszServiceName, PFNHGCMSVCEXT pfnExtension, void *pvExtension);
     48void HGCMHostUnregisterServiceExtension (HGCMSVCEXTHANDLE handle);
    4249
    4350int HGCMGuestConnect (PPDMIHGCMPORT pHGCMPort, PVBOXHGCMCMD pCmdPtr, const char *pszServiceName, uint32_t *pClientID);
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