SharedClipboard.h revision b26977a29bd8af11e3059ef8fb47a92a1241f20d
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * Shared Clipboard
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * Copyright (C) 2006-2007 Sun Microsystems, Inc.
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * available from http://www.virtualbox.org. This file is free software;
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * you can redistribute it and/or modify it under the terms of the GNU
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * General Public License (GPL) as published by the Free Software
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * additional information or have any questions.
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync /** The number of milliseconds before the clipboard times out. */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsynctypedef struct _VBOXCLIPBOARDCONTEXT VBOXCLIPBOARDCONTEXT;
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync/** Does X11 or VBox currently own the clipboard? */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync/** A structure containing information about where to store a request
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * for the X11 clipboard contents. */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync /** The buffer to write X11 clipboard data to (valid during a request
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * for the clipboard contents) */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync /** The size of the buffer to write X11 clipboard data to (valid during
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * a request for the clipboard contents) */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync /** The size of the X11 clipboard data written to the buffer (valid
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync * during a request for the clipboard contents) */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsynctypedef struct _VBOXCLIPBOARDREQUEST VBOXCLIPBOARDREQUEST;
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync/* APIs exported by the X11 backend */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern void VBoxX11ClipboardAnnounceVBoxFormat (uint32_t u32Formats);
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern int VBoxX11ClipboardInitX11 (VBOXCLIPBOARDCONTEXT *pFrontend);
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern int VBoxX11ClipboardTermX11 (void);
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern int VBoxX11ClipboardStartX11 (enum g_eOwner owner);
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern void VBoxX11ClipboardRequestSyncX11 (void);
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern void VBoxX11ClipboardStopX11 (void);
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern void VBoxX11ClipboardAnnounceVBoxFormat (uint32_t u32Formats);
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern int VBoxX11ClipboardReadX11Data (uint32_t u32Format,
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync/* APIs exported by the X11/VBox frontend */
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern int VBoxX11ClipboardReadVBoxData (VBOXCLIPBOARDCONTEXT *pCtx,
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsyncextern void VBoxX11ClipboardReportX11Formats(VBOXCLIPBOARDCONTEXT *pCtx,
b26977a29bd8af11e3059ef8fb47a92a1241f20dvboxsync#endif /* ___GUESTHOST_VBOXCLIPBOARD__H */