Changeset 80623 in vbox for trunk/include
- Timestamp:
- Sep 6, 2019 10:05:11 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133152
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/SharedClipboard.h
r80468 r80623 1 1 /** @file 2 * Shared Clipboard - Common Guest and Host Code.2 * Shared Clipboard - Common guest and host Code. 3 3 */ 4 4 … … 50 50 #define VBOX_SHARED_CLIPBOARD_FMT_NONE 0 51 51 /** Shared Clipboard format is an Unicode text. */ 52 #define VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT UINT32_C(0x01)52 #define VBOX_SHARED_CLIPBOARD_FMT_UNICODETEXT RT_BIT(0) 53 53 /** Shared Clipboard format is bitmap (BMP / DIB). */ 54 #define VBOX_SHARED_CLIPBOARD_FMT_BITMAP UINT32_C(0x02)54 #define VBOX_SHARED_CLIPBOARD_FMT_BITMAP RT_BIT(1) 55 55 /** Shared Clipboard format is HTML. */ 56 #define VBOX_SHARED_CLIPBOARD_FMT_HTML UINT32_C(0x04)56 #define VBOX_SHARED_CLIPBOARD_FMT_HTML RT_BIT(2) 57 57 #ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST 58 58 /** Shared Clipboard format is an URI list. */ 59 #define VBOX_SHARED_CLIPBOARD_FMT_URI_LIST UINT32_C(0x08)59 #define VBOX_SHARED_CLIPBOARD_FMT_URI_LIST RT_BIT(3) 60 60 #endif 61 61 … … 167 167 168 168 VBOXCLIPBOARDEVENTID SharedClipboardEventIDGenerate(PSHAREDCLIPBOARDEVENTSOURCE pSource); 169 VBOXCLIPBOARDEVENTID SharedClipboardEventGetLast(PSHAREDCLIPBOARDEVENTSOURCE pSource); 169 170 int SharedClipboardEventRegister(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID); 170 171 int SharedClipboardEventUnregister(PSHAREDCLIPBOARDEVENTSOURCE pSource, VBOXCLIPBOARDEVENTID uID); … … 189 190 } SHAREDCLIPBOARDSOURCE; 190 191 191 enum192 {193 /** The number of milliseconds before the clipboard times out. */194 #ifndef TESTCASE195 CLIPBOARD_TIMEOUT = 5000196 #else197 CLIPBOARD_TIMEOUT = 1198 #endif199 };200 201 192 /** Opaque data structure for the X11/VBox frontend/glue code. */ 202 193 struct _VBOXCLIPBOARDCONTEXT; … … 208 199 typedef struct _CLIPBACKEND CLIPBACKEND; 209 200 210 /** Opaque request structure for clipboard data.201 /** Opaque request structure for X11 clipboard data. 211 202 * @todo All use of single and double underscore prefixes is banned! */ 212 203 struct _CLIPREADCBREQ; … … 216 207 extern CLIPBACKEND *ClipConstructX11(VBOXCLIPBOARDCONTEXT *pFrontend, bool fHeadless); 217 208 extern void ClipDestructX11(CLIPBACKEND *pBackend); 218 #ifdef __cplusplus219 extern int ClipStartX11(CLIPBACKEND *pBackend, bool grab = false);220 #else221 209 extern int ClipStartX11(CLIPBACKEND *pBackend, bool grab); 222 #endif223 210 extern int ClipStopX11(CLIPBACKEND *pBackend); 224 extern int ClipAnnounceFormatToX11(CLIPBACKEND *pBackend, 225 VBOXCLIPBOARDFORMATS vboxFormats); 226 extern int ClipRequestDataFromX11(CLIPBACKEND *pBackend, VBOXCLIPBOARDFORMATS vboxFormat, 227 CLIPREADCBREQ *pReq); 211 extern int ClipAnnounceFormatToX11(CLIPBACKEND *pBackend, VBOXCLIPBOARDFORMATS vboxFormats); 212 extern int ClipRequestDataFromX11(CLIPBACKEND *pBackend, VBOXCLIPBOARDFORMATS vboxFormat, CLIPREADCBREQ *pReq); 228 213 229 214 /* APIs exported by the X11/VBox frontend */ 230 extern int ClipRequestDataForX11(VBOXCLIPBOARDCONTEXT *pCtx, 231 uint32_t u32Format, void **ppv, 232 uint32_t *pcb); 233 extern void ClipReportX11Formats(VBOXCLIPBOARDCONTEXT *pCtx, 234 uint32_t u32Formats); 235 extern void ClipCompleteDataRequestFromX11(VBOXCLIPBOARDCONTEXT *pCtx, int rc, 236 CLIPREADCBREQ *pReq, void *pv, 237 uint32_t cb); 215 extern int ClipRequestDataForX11(VBOXCLIPBOARDCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb); 216 extern void ClipReportX11Formats(VBOXCLIPBOARDCONTEXT *pCtx, uint32_t u32Formats); 217 extern void ClipRequestFromX11CompleteCallback(VBOXCLIPBOARDCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb); 238 218 #endif /* !VBOX_INCLUDED_GuestHost_SharedClipboard_h */ 219 -
trunk/include/VBox/HostServices/VBoxClipboardSvc.h
r80470 r80623 40 40 * 41 41 * Protocol v1 (VBox >= 6.1): 42 * + Introduces protocol versioning and context IDs for parallel,42 * + Adds protocol versioning and context IDs for parallel, 43 43 * asynchronous transfers. 44 * | Keeps backwards-compatbility with protocol v0 clients. 44 * | Keeps backwards-compatbility with protocol v0 clients by translating 45 * messages to protocol v0, to not break compatibility with older 46 * Guest Additions (VBox < 6.1). 45 47 */ 46 48 … … 96 98 /** Reports available clipboard format from host to the guest. 97 99 * Formerly known as VBOX_SHARED_CLIPBOARD_HOST_MSG_REPORT_FORMATS. */ 98 #define VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_WRITE 3 99 /** Reports available clipboard format from host to the guest. */ 100 #define VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_READ 4 100 #define VBOX_SHARED_CLIPBOARD_HOST_MSG_FORMATS_REPORT 3 101 101 102 102 /** Initiates a new transfer (read / write) on the guest side. */ … … 144 144 /** Sends a list of available formats to the host. 145 145 * Formely known as VBOX_SHARED_CLIPBOARD_GUEST_FN_REPORT_FORMATS. */ 146 #define VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_ WRITE2146 #define VBOX_SHARED_CLIPBOARD_GUEST_FN_FORMATS_REPORT 2 147 147 /** Reads data in specified format from the host. */ 148 148 #define VBOX_SHARED_CLIPBOARD_GUEST_FN_DATA_READ 3
Note:
See TracChangeset
for help on using the changeset viewer.