Changeset 81044 in vbox
- Timestamp:
- Sep 27, 2019 10:49:07 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133647
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/GuestHost/SharedClipboard.h
r80858 r81044 225 225 typedef struct _CLIPREADCBREQ CLIPREADCBREQ; 226 226 227 /* APIs exported by the X11 backend */227 /* APIs exported by the X11 backend. */ 228 228 extern CLIPBACKEND *ClipConstructX11(SHCLCONTEXT *pFrontend, bool fHeadless); 229 229 extern void ClipDestructX11(CLIPBACKEND *pBackend); … … 233 233 extern int ClipRequestDataFromX11(CLIPBACKEND *pBackend, SHCLFORMATS vboxFormat, CLIPREADCBREQ *pReq); 234 234 235 /* APIs exported by the X11/VBox frontend*/236 extern int ClipRequestDataForX11(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb);237 extern void ClipReportX11Formats(SHCLCONTEXT *pCtx, uint32_t u32Formats);238 extern voidClipRequestFromX11CompleteCallback(SHCLCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb);235 /* APIs (as callbacks) exported by the X11/VBox frontend. */ 236 extern DECLCALLBACK(int) ClipRequestDataForX11Callback(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb); 237 extern DECLCALLBACK(void) ClipReportX11FormatsCallback(SHCLCONTEXT *pCtx, uint32_t u32Formats); 238 extern DECLCALLBACK(void) ClipRequestFromX11CompleteCallback(SHCLCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb); 239 239 #endif /* !VBOX_INCLUDED_GuestHost_SharedClipboard_h */ 240 240 -
trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp
r81043 r81044 86 86 * returned 87 87 */ 88 int ClipRequestDataForX11(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb)88 DECLCALLBACK(int) ClipRequestDataForX11Callback(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb) 89 89 { 90 90 RT_NOREF(pCtx); … … 148 148 * @param u32Formats The formats to report. 149 149 */ 150 void ClipReportX11Formats(SHCLCONTEXT *pCtx, uint32_t u32Formats)150 DECLCALLBACK(void) ClipReportX11FormatsCallback(SHCLCONTEXT *pCtx, uint32_t u32Formats) 151 151 { 152 152 RT_NOREF(pCtx); … … 166 166 * @param cb the size of the data in @a pv 167 167 */ 168 voidClipRequestFromX11CompleteCallback(SHCLCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb)168 DECLCALLBACK(void) ClipRequestFromX11CompleteCallback(SHCLCONTEXT *pCtx, int rc, CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 169 169 { 170 170 RT_NOREF(pCtx); -
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp
r81043 r81044 377 377 pCtx->X11TextFormat, pCtx->X11BitmapFormat, pCtx->X11HTMLFormat, 378 378 u32VBoxFormats )); 379 ClipReportX11Formats (pCtx->pFrontend, u32VBoxFormats);379 ClipReportX11FormatsCallback(pCtx->pFrontend, u32VBoxFormats); 380 380 } 381 381 … … 1097 1097 { 1098 1098 if (pCtx->pvUnicodeCache == NULL) 1099 rc = ClipRequestDataForX11 (pCtx->pFrontend, u32Format,1100 &pCtx->pvUnicodeCache,1101 &pCtx->cbUnicodeCache);1099 rc = ClipRequestDataForX11Callback(pCtx->pFrontend, u32Format, 1100 &pCtx->pvUnicodeCache, 1101 &pCtx->cbUnicodeCache); 1102 1102 if (RT_SUCCESS(rc)) 1103 1103 { … … 1109 1109 } 1110 1110 else 1111 rc = ClipRequestDataForX11 (pCtx->pFrontend, u32Format,1112 ppv, pcb);1111 rc = ClipRequestDataForX11Callback(pCtx->pFrontend, u32Format, 1112 ppv, pcb); 1113 1113 LogRelFlowFunc(("returning %Rrc\n", rc)); 1114 1114 if (RT_SUCCESS(rc)) -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r80995 r81044 62 62 * @param u32Formats The formats available. 63 63 */ 64 void ClipReportX11Formats(SHCLCONTEXT *pCtx, uint32_t u32Formats)64 DECLCALLBACK(void) ClipReportX11FormatsCallback(SHCLCONTEXT *pCtx, uint32_t u32Formats) 65 65 { 66 66 LogFlowFunc(("pCtx=%p, u32Formats=%02X\n", pCtx, u32Formats)); … … 351 351 * @note Host glue code. 352 352 */ 353 int ClipRequestDataForX11(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb)353 DECLCALLBACK(int) ClipRequestDataForX11Callback(SHCLCONTEXT *pCtx, uint32_t u32Format, void **ppv, uint32_t *pcb) 354 354 { 355 355 LogFlowFunc(("pCtx=%p, u32Format=%02X, ppv=%p\n", pCtx, u32Format, ppv));
Note:
See TracChangeset
for help on using the changeset viewer.