VirtualBox

Changeset 93315 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 18, 2022 2:02:21 PM (3 years ago)
Author:
vboxsync
Message:

Shared Clipboard/X11: Renaming "formats" to "targets", to better point out this is what X uses as clipboard formats [build fix; forgot a file].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/SharedClipboard/testcase/tstClipboardGH-X11.cpp

    r93115 r93315  
    4141extern SHCLX11FMT clipRealFormatForX11Format(SHCLX11FMTIDX uFmtIdx);
    4242extern Atom clipGetAtom(PSHCLX11CTX pCtx, const char *pcszName);
    43 extern void clipQueryX11Formats(PSHCLX11CTX pCtx);
     43extern void clipQueryX11Targets(PSHCLX11CTX pCtx);
    4444extern size_t clipReportMaxX11Formats(void);
    4545
     
    6262*   Own callback implementations                                                                                                 *
    6363*********************************************************************************************************************************/
    64 extern DECLCALLBACK(void) clipConvertX11TargetsCallback(Widget widget, XtPointer pClient,
    65                                                         Atom * /* selection */, Atom *atomType,
    66                                                         XtPointer pValue, long unsigned int *pcLen,
    67                                                         int *piFormat);
     64extern DECLCALLBACK(void) clipQueryX11TargetsCallback(Widget widget, XtPointer pClient,
     65                                                      Atom * /* selection */, Atom *atomType,
     66                                                      XtPointer pValue, long unsigned int *pcLen,
     67                                                      int *piFormat);
    6868
    6969
     
    338338static void tstClipSendTargetUpdate(PSHCLX11CTX pCtx)
    339339{
    340     clipQueryX11Formats(pCtx);
     340    clipQueryX11Targets(pCtx);
    341341}
    342342
     
    800800    long unsigned int cLen = 0;
    801801    int format = 8;
    802     clipConvertX11TargetsCallback(NULL, (XtPointer) &X11Ctx, NULL, &atom, NULL, &cLen,
    803                                   &format);
     802    clipQueryX11TargetsCallback(NULL, (XtPointer) &X11Ctx, NULL, &atom, NULL, &cLen,
     803                                &format);
    804804    RTTEST_CHECK_MSG(hTest, tstClipQueryFormats() == 0,
    805805                     (hTest, "Wrong targets reported: %02X\n",
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