VirtualBox

Changeset 78581 in vbox for trunk/include/VBox/GuestHost


Ignore:
Timestamp:
May 18, 2019 3:48:41 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
130636
Message:

Shared Clipboard/URI: Update.

Location:
trunk/include/VBox/GuestHost
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/SharedClipboard-uri.h

    r78501 r78581  
    8989
    9090    /** Number of references to this instance. */
    91     volatile uint16_t            m_cRefs;
     91    volatile uint32_t            m_cRefs;
    9292    /** Critical section for serializing access. */
    9393    RTCRITSECT                   m_CritSect;
  • trunk/include/VBox/GuestHost/SharedClipboard-win.h

    r78501 r78581  
    7070 * If the new API is not available, those function pointer are NULL.
    7171 */
    72 typedef struct VBOXCLIPBOARDWINAPINEW
     72typedef struct _VBOXCLIPBOARDWINAPINEW
    7373{
    7474    PFNADDCLIPBOARDFORMATLISTENER    pfnAddClipboardFormatListener;
     
    7979 * Structure for keeping variables which are needed to drive the old clipboard API.
    8080 */
    81 typedef struct VBOXCLIPBOARDWINAPIOLD
     81typedef struct _VBOXCLIPBOARDWINAPIOLD
    8282{
    8383    /** Timer ID for the refresh timer. */
     
    9191
    9292/**
     93 * Structure for maintaining a single URI list transfer.
     94 */
     95typedef struct _VBOXCLIPBOARDWINURITRANSFER
     96{
     97    /** Pointer to data object to use for this transfer. */
     98    VBoxClipboardWinDataObject *pDataObj;
     99} VBOXCLIPBOARDWINURITRANSFER, *PVBOXCLIPBOARDWINURITRANSFER;
     100
     101/**
    93102 * Structure for keeping URI clipboard information around.
    94103 */
    95104typedef struct _VBOXCLIPBOARDWINURI
    96105{
    97     UINT cfFileGroupDescriptor;
    98     UINT cfFileContents;
    99     VBoxClipboardWinDataObject *pDataObj;
     106    /** Transfer data; at the moment we only support one transfer at a time.
     107     *  Use a list or something lateron. */
     108    VBOXCLIPBOARDWINURITRANSFER Transfer;
     109    /** Number of concurrent transfers.
     110     *  At the moment we only support only one transfer at a time. */
     111    uint32_t                    cTransfers;
    100112} VBOXCLIPBOARDWINURI, *PVBOXCLIPBOARDWINURI;
    101113#endif
    102114
    103 typedef struct VBOXCLIPBOARDWINCTX
     115/**
     116 * Structure for maintaining a Shared Clipboard context on Windows platforms.
     117 */
     118typedef struct _VBOXCLIPBOARDWINCTX
    104119{
    105120    /** Window handle of our (invisible) clipbaord window. */
     
    130145
    131146#ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST
    132 int VBoxClipboardWinDropFilesToStringList(DROPFILES *pDropFiles, void **ppvData, size_t *pcbData);
     147int VBoxClipboardWinDropFilesToStringList(DROPFILES *pDropFiles, char **ppszData, size_t *pcbData);
    133148#endif
    134149
  • trunk/include/VBox/GuestHost/SharedClipboard.h

    r78474 r78581  
    9999#endif
    100100extern int ClipStopX11(CLIPBACKEND *pBackend);
    101 extern void ClipAnnounceFormatToX11(CLIPBACKEND *pBackend,
    102                                     uint32_t u32Formats);
    103 extern int ClipRequestDataFromX11(CLIPBACKEND *pBackend, uint32_t u32Format,
     101extern int ClipAnnounceFormatToX11(CLIPBACKEND *pBackend,
     102                                   VBOXCLIPBOARDFORMATS vboxFormats);
     103extern int ClipRequestDataFromX11(CLIPBACKEND *pBackend, VBOXCLIPBOARDFORMATS vboxFormat,
    104104                                  CLIPREADCBREQ *pReq);
    105105
     
    114114                                           uint32_t cb);
    115115#endif /* !VBOX_INCLUDED_GuestHost_SharedClipboard_h */
    116 
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette