Changeset 93321 in vbox for trunk/src/VBox
- Timestamp:
- Jan 18, 2022 3:20:39 PM (3 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/clipboard.cpp
r93115 r93321 58 58 59 59 60 DECLCALLBACK(int) ShClX11RequestDataForX11Callback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb) 60 /** @copydoc ShClX11RequestDataCallback */ 61 DECLCALLBACK(int) ShClX11RequestDataCallback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb) 61 62 { 62 63 LogFlowFunc(("pCtx=%p, uFmt=%#x\n", pCtx, uFmt)); … … 143 144 }; 144 145 146 /** @copydoc ShClX11ReportFormatsCallback */ 145 147 DECLCALLBACK(void) ShClX11ReportFormatsCallback(PSHCLCONTEXT pCtx, SHCLFORMATS fFormats) 146 148 { … … 154 156 } 155 157 156 DECLCALLBACK(void) ShClX11RequestFromX11CompleteCallback(PSHCLCONTEXT pCtx, int rcCompletion, 157 CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 158 /** @copydoc ShClX11ReportDataCallback */ 159 DECLCALLBACK(void) ShClX11ReportDataCallback(PSHCLCONTEXT pCtx, int rcCompletion, 160 CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 158 161 { 159 162 LogFlowFunc(("rcCompletion=%Rrc, Format=0x%x, pv=%p, cb=%RU32\n", rcCompletion, pReq->Format, pv, cb)); -
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp
r93314 r93321 1453 1453 { 1454 1454 if (pCtx->pvUnicodeCache == NULL) /** @todo r=andy Using string cache here? */ 1455 rc = ShClX11RequestData ForX11Callback(pCtx->pFrontend, uFmt,1456 1457 1455 rc = ShClX11RequestDataCallback(pCtx->pFrontend, uFmt, 1456 &pCtx->pvUnicodeCache, 1457 &pCtx->cbUnicodeCache); 1458 1458 if (RT_SUCCESS(rc)) 1459 1459 { … … 1466 1466 } 1467 1467 else 1468 rc = ShClX11RequestData ForX11Callback(pCtx->pFrontend, uFmt, &pv, &cb);1468 rc = ShClX11RequestDataCallback(pCtx->pFrontend, uFmt, &pv, &cb); 1469 1469 1470 1470 … … 2151 2151 g_aFormats[pReq->idxFmtX11].pcszAtom, pReq->idxFmtX11, pReq->uFmtVBox, rc)); 2152 2152 2153 ShClX11Re questFromX11CompleteCallback(pReq->pCtx->pFrontend, rc, pReq->pReq,2154 pvDst, cbDst); 2153 ShClX11ReportDataCallback(pReq->pCtx->pFrontend, rc, pReq->pReq, pvDst, cbDst); 2154 2155 2155 RTMemFree(pvDst); 2156 2156 RTMemFree(pReq); … … 2274 2274 /* The clipboard callback was never scheduled, so we must signal 2275 2275 * that the request processing is finished and clean up ourselves. */ 2276 ShClX11Re questFromX11CompleteCallback(pReq->pCtx->pFrontend, rc, pReq->pReq,2277 2276 ShClX11ReportDataCallback(pReq->pCtx->pFrontend, rc, pReq->pReq, 2277 NULL /* pv */ ,0 /* cb */); 2278 2278 RTMemFree(pReq); 2279 2279 } -
trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardGH-X11.cpp
r93315 r93321 119 119 } 120 120 121 DECLCALLBACK(int) ShClX11RequestDataForX11Callback(PSHCLCONTEXT pCtx, uint32_t uFmt, void **ppv, uint32_t *pcb) 121 /** @copydoc ShClX11RequestDataCallback */ 122 DECLCALLBACK(int) ShClX11RequestDataCallback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb) 122 123 { 123 124 RT_NOREF(pCtx, uFmt); … … 398 399 static char g_tst_abCompletedBuf[TESTCASE_MAX_BUF_SIZE]; 399 400 400 DECLCALLBACK(void) ShClX11Re questFromX11CompleteCallback(PSHCLCONTEXT pCtx, int rcCompletion,401 401 DECLCALLBACK(void) ShClX11ReportDataCallback(PSHCLCONTEXT pCtx, int rcCompletion, 402 CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 402 403 { 403 404 RT_NOREF(pCtx); -
trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardGH-X11Smoke.cpp
r93115 r93321 31 31 32 32 33 DECLCALLBACK(int) ShClX11RequestDataForX11Callback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb) 33 /** @copydoc ShClX11RequestDataCallback */ 34 DECLCALLBACK(int) ShClX11RequestDataCallback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb) 34 35 { 35 36 RT_NOREF(pCtx, uFmt, ppv, pcb); … … 37 38 } 38 39 40 /** @copydoc ShClX11ReportFormatsCallback */ 39 41 DECLCALLBACK(void) ShClX11ReportFormatsCallback(PSHCLCONTEXT pCtx, SHCLFORMATS fFormats) 40 42 { … … 42 44 } 43 45 44 DECLCALLBACK(void) ShClX11RequestFromX11CompleteCallback(PSHCLCONTEXT pCtx, int rcCompletion, 45 CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 46 /** @copydoc ShClX11ReportDataCallback */ 47 DECLCALLBACK(void) ShClX11ReportDataCallback(PSHCLCONTEXT pCtx, int rcCompletion, 48 CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 46 49 { 47 50 RT_NOREF(pCtx, rcCompletion, pReq, pv, cb); -
trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp
r93115 r93321 307 307 } 308 308 309 DECLCALLBACK(void) ShClX11RequestFromX11CompleteCallback(PSHCLCONTEXT pCtx, int rcCompletion, 310 CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 309 /** @copydoc ShClX11ReportDataCallback */ 310 DECLCALLBACK(void) ShClX11ReportDataCallback(PSHCLCONTEXT pCtx, int rcCompletion, 311 CLIPREADCBREQ *pReq, void *pv, uint32_t cb) 311 312 { 312 313 AssertPtrReturnVoid(pCtx); … … 348 349 RTMemFree(pReq); 349 350 350 LogRel2(("Shared Clipboard: Request for clipboard data from X11 host completed with %Rrc\n", rcCompletion)); 351 } 352 353 DECLCALLBACK(int) ShClX11RequestDataForX11Callback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb) 351 LogRel2(("Shared Clipboard: Reading X11 clipboard data from host completed with %Rrc\n", rcCompletion)); 352 } 353 354 /** @copydoc ShClX11RequestDataCallback */ 355 DECLCALLBACK(int) ShClX11RequestDataCallback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb) 354 356 { 355 357 LogFlowFunc(("pCtx=%p, uFmt=0x%x\n", pCtx, uFmt));
Note:
See TracChangeset
for help on using the changeset viewer.