VirtualBox

Ignore:
Timestamp:
May 4, 2023 10:43:08 AM (22 months ago)
Author:
vboxsync
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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.

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