VirtualBox

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


Ignore:
Timestamp:
Apr 23, 2009 9:23:45 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
46398
Message:

HostServices and GuestHost/X11 clipboard: lots of changes, see defect 3621 comment 41

File:
1 edited

Legend:

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

    r19027 r19152  
    3737enum {
    3838    /** The number of milliseconds before the clipboard times out. */
    39     CLIPBOARDTIMEOUT = 5000
     39    CLIPBOARD_TIMEOUT = 5000
    4040};
    4141
     
    4747struct _VBOXCLIPBOARDCONTEXTX11;
    4848typedef struct _VBOXCLIPBOARDCONTEXTX11 VBOXCLIPBOARDCONTEXTX11;
    49 
    50 /** Does X11 or VBox currently own the clipboard? */
    51 /** @todo This is ugly, get rid of it. */
    52 enum g_eOwner { NONE = 0, X11, VB };
    5349
    5450/** A structure containing information about where to store a request
     
    6561     * during a request for the clipboard contents) */
    6662    uint32_t *pcbActual;
     63    /** The format VBox would like the data in */
     64    uint32_t format;
    6765    /** Return code for the request processing code */
    6866    int rc;
     67    /** Semaphore which is signalled when the request is completed */
     68    RTSEMEVENT finished;
    6969    /** The clipboard context this request is associated with */
    7070    VBOXCLIPBOARDCONTEXTX11 *pCtx;
     
    7777                                        (VBOXCLIPBOARDCONTEXT *pFrontend);
    7878extern void VBoxX11ClipboardDestructX11(VBOXCLIPBOARDCONTEXTX11 *pBackend);
    79 extern int VBoxX11ClipboardStartX11(VBOXCLIPBOARDCONTEXTX11 *pBackend,
    80                                     bool fOwnsClipboard);
     79extern int VBoxX11ClipboardStartX11(VBOXCLIPBOARDCONTEXTX11 *pBackend);
    8180extern int VBoxX11ClipboardStopX11(VBOXCLIPBOARDCONTEXTX11 *pBackend);
    82 extern void VBoxX11ClipboardRequestSyncX11(VBOXCLIPBOARDCONTEXTX11 *pBackend);
    8381extern void VBoxX11ClipboardAnnounceVBoxFormat(VBOXCLIPBOARDCONTEXTX11
    8482                                               *pBackend, uint32_t u32Formats);
    8583extern int VBoxX11ClipboardReadX11Data(VBOXCLIPBOARDCONTEXTX11 *pBackend,
    8684                                       uint32_t u32Format,
    87                                        VBOXCLIPBOARDREQUEST *pRequest);
     85                                       void *pv, uint32_t cb,
     86                                       uint32_t *pcbActual);
    8887
    8988/* APIs exported by the X11/VBox frontend */
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