VirtualBox

Ignore:
Timestamp:
May 4, 2023 10:43:08 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157119
Message:

Guest Additions/VBoxClient: Moved the X11-specific code for seamless mode into an own submodule and using the actual service as a (runtime) wrapper (for also the Wayland-specific code later) [build fix]. bugref:10427

Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp

    r99600 r99601  
    617617    {
    618618        pcszStage = "Connecting to the X server";
    619         rc = mX11Monitor.init(VBClSeamnlessSendRegionUpdate);
     619        rc = mX11Monitor.init(VBClSeamlessSendRegionUpdate);
    620620        if (RT_FAILURE(rc))
    621621            break;
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless.cpp

    r99600 r99601  
    6363 * @param   cRects              Number of regions in \a pRect.
    6464 */
    65 void VBClSeamnlessSendRegionUpdate(RTRECT *pRects, size_t cRects)
     65void VBClSeamlessSendRegionUpdate(RTRECT *pRects, size_t cRects)
    6666{
    6767    if (   cRects
  • trunk/src/VBox/Additions/x11/VBoxClient/seamless.h

    r99600 r99601  
    4343/** @name Generic seamless functions
    4444 * @{ */
    45 void VBClSeamnlessSendRegionUpdate(RTRECT *pRects, size_t cRects);
     45void VBClSeamlessSendRegionUpdate(RTRECT *pRects, size_t cRects);
    4646/** @} */
    4747
  • trunk/src/VBox/Additions/x11/VBoxClient/testcase/tstSeamlessX11-auto.cpp

    r99600 r99601  
    8585
    8686    exit(1);
     87}
     88
     89void VBClLogVerbose(unsigned iLevel, const char *pszFormat, ...)
     90{
     91    RT_NOREF(iLevel);
     92
     93    va_list va;
     94    va_start(va, pszFormat);
     95    RTPrintf("%s", pszFormat);
     96    va_end(va);
    8797}
    8898
     
    366376static bool g_fNotified = false;
    367377
    368 /** Dummy host call-back. */
    369 static void sendRegionUpdate(RTRECT *pRects, size_t cRects)
     378/** Dummy host callback. */
     379void VBClSeamlessSendRegionUpdate(RTRECT *pRects, size_t cRects)
    370380{
    371381    RT_NOREF2(pRects, cRects);
    372382    g_fNotified = true;
     383}
     384
     385int VbglR3SeamlessSetCap(bool bState)
     386{
     387    RTPrintf("%s\n", bState ? "Seamless capability set"
     388                            : "Seamless capability unset");
     389    return VINF_SUCCESS;
     390}
     391
     392int VbglR3CtlFilterMask(uint32_t u32OrMask, uint32_t u32NotMask)
     393{
     394    RTPrintf("IRQ filter mask changed.  Or mask: 0x%x.  Not mask: 0x%x\n",
     395             u32OrMask, u32NotMask);
     396    return VINF_SUCCESS;
     397}
     398
     399int VbglR3SeamlessWaitEvent(VMMDevSeamlessMode *pMode)
     400{
     401    RT_NOREF(pMode);
     402    return VINF_SUCCESS;
    373403}
    374404
     
    679709    unsigned cErrs = 0;
    680710
    681     subject.init(sendRegionUpdate);
     711    subject.init(VBClSeamlessSendRegionUpdate);
    682712    smlsSetWindowAttributes(pFixture->paAttribsBefore,
    683713                            pFixture->pahWindowsBefore,
Note: See TracChangeset for help on using the changeset viewer.

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