VirtualBox

Changeset 93497 in vbox for trunk/src


Ignore:
Timestamp:
Jan 31, 2022 1:29:28 PM (3 years ago)
Author:
vboxsync
Message:

Shared Clipboard: Implemented backend callbacks and a dedicated backend context, together with a new testcase which mocks HGCM to also test the guest-side clipboard code (disabled by default for now). Work in progress, only tested on Linux so far [build fix].

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/clipboard-x11.cpp

    r93496 r93497  
    18241824        return False;
    18251825
    1826     XSelectionRequestEvent* req =
    1827         XtGetSelectionRequest(widget, *atomSelection, (XtRequestId)NULL);
    1828 
    18291826    /* Is this the rigt selection (clipboard) we were asked for? */
    18301827    if (!clipIsSupportedSelectionType(pCtx, *atomSelection))
     
    18391836                                  pValReturn, pcLenReturn, piFormatReturn);
    18401837
    1841 
     1838#ifdef LOG_ENABLED
     1839    XSelectionRequestEvent* pReq =
     1840        XtGetSelectionRequest(widget, *atomSelection, (XtRequestId)NULL);
    18421841    LogFlowFunc(("returning pVBoxWnd=%#x, ownerWnd=%#x, reqWnd=%#x, %RTbool, rc=%Rrc\n",
    1843                  XtWindow(pCtx->pWidget), req->owner, req->requestor, RT_SUCCESS(rc), rc));
     1842                 XtWindow(pCtx->pWidget), pReq->owner, pReq->requestor, RT_SUCCESS(rc), rc));
     1843#endif
    18441844    return RT_SUCCESS(rc) ? True : False;
    18451845}
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-x11.cpp

    r93496 r93497  
    322322}
    323323
    324 /** @copydoc SHCLBACKENDCALLBACKS::pfnReportFormats */
     324/** @copydoc SHCLCALLBACKS::pfnReportFormats */
    325325static DECLCALLBACK(int) shClReportFormatsCallback(PSHCLCONTEXT pCtx, uint32_t fFormats, void *pvUser)
    326326{
     
    352352}
    353353
    354 /** @copydoc SHCLBACKENDCALLBACKS::pfnOnSendDataToDest */
     354/** @copydoc SHCLCALLBACKS::pfnOnSendDataToDest */
    355355static DECLCALLBACK(int) shClSendDataToDestCallback(PSHCLCONTEXT pCtx, void *pv, uint32_t cb, void *pvUser)
    356356{
     
    402402}
    403403
    404 /** @copydoc SHCLBACKENDCALLBACKS::pfnOnRequestDataFromSource */
     404/** @copydoc SHCLCALLBACKS::pfnOnRequestDataFromSource */
    405405static DECLCALLBACK(int) shClRequestDataFromSourceCallback(PSHCLCONTEXT pCtx, SHCLFORMAT uFmt, void **ppv, uint32_t *pcb, void *pvUser)
    406406{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette