VirtualBox

Ignore:
Timestamp:
May 26, 2020 1:25:05 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138267
Message:

bugref:9637

  • Renaming vmsvga-x11 service to vmsvga service
  • Replacing display-svga.cpp with display-wayland.cpp
Location:
trunk/src/VBox/Additions/x11/VBoxClient
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk

    r84501 r84538  
    2626#
    2727PROGRAMS += VBoxClient
     28PROGRAMS += VBoxWaylandClient
    2829
    2930VBoxClient_TEMPLATE = NewVBoxGuestR3Exe
     
    4142VBoxClient_SOURCES = \
    4243        main.cpp \
    43         display-svga.cpp \
    4444        display-svga-x11.cpp \
    4545        seamless.cpp \
     
    4747        logging.cpp \
    4848        hostversion.cpp
     49
     50VBoxWaylandClient_TEMPLATE = NewVBoxGuestR3Exe
     51VBoxWaylandClient_DEFS += VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\"
     52VBoxWaylandClient_SOURCES = \
     53    display-wayland.cpp \
     54    logging.cpp
     55
    4956
    5057VBoxClient_SOURCES.linux = \
  • trunk/src/VBox/Additions/x11/VBoxClient/display-wayland.cpp

    r84537 r84538  
    4949#include <stdio.h>
    5050
     51
    5152/** Maximum number of supported screens.  DRM and X11 both limit this to 32. */
    5253/** @todo if this ever changes, dynamically allocate resizeable arrays in the
     
    6364
    6465#define DRM_DRIVER_NAME "vmwgfx"
     66
     67/** Counter of how often our daemon has been respawned. */
     68unsigned      g_cRespawn = 0;
     69/** Logging verbosity level. */
     70unsigned      g_cVerbosity = 0;
    6571
    6672/** DRM version structure. */
     
    167173}
    168174
    169 static const char *getName()
    170 {
    171     return "Display SVGA";
    172 }
    173 
    174 static const char *getPidFilePath()
    175 {
    176     return ".vboxclient-display-svga.pid";
    177 }
    178 
    179 static int run(struct VBCLSERVICE **ppInterface, bool fDaemonised)
    180 {
    181     (void)ppInterface;
    182     (void)fDaemonised;
     175int main()
     176{
    183177    struct DRMCONTEXT drmContext = { NIL_RTFILE };
    184178    static struct VMMDevDisplayDef aMonitors[VMW_MAX_HEADS];
     
    199193    if (RT_FAILURE(rc))
    200194        VBClLogFatalError("Failed to register resizing support, rc=%Rrc\n", rc);
     195
    201196    for (;;)
    202197    {
     
    262257            VBClLogFatalError("Failure waiting for event, rc=%Rrc\n", rc);
    263258    }
     259    return 0;
    264260}
    265 
    266 static struct VBCLSERVICE interface =
    267 {
    268     getName,
    269     getPidFilePath,
    270     VBClServiceDefaultHandler, /* Init */
    271     run,
    272     VBClServiceDefaultCleanup
    273 }, *pInterface = &interface;
    274 
    275 struct VBCLSERVICE **VBClDisplaySVGAService()
    276 {
    277     return &pInterface;
    278 }
  • trunk/src/VBox/Additions/x11/VBoxClient/main.cpp

    r84503 r84538  
    4848#define VBOXCLIENT_OPT_SEAMLESS             VBOXCLIENT_OPT_SERVICES + 3
    4949#define VBOXCLIENT_OPT_VMSVGA               VBOXCLIENT_OPT_SERVICES + 4
    50 #define VBOXCLIENT_OPT_VMSVGA_X11           VBOXCLIENT_OPT_SERVICES + 5
    5150
    5251
     
    175174#endif
    176175             "--seamless|"
    177              "--vmsvga|--vmsvga-x11"
     176             "--vmsvga"
    178177             "[-d|--nodaemon]\n", pcszFileName);
    179178    RTPrintf("Starts the VirtualBox DRM/X Window System guest services.\n\n");
     
    189188#endif
    190189    RTPrintf("  --seamless         starts the seamless windows service\n");
    191     RTPrintf("  --vmsvga           starts VMSVGA dynamic resizing for DRM\n");
    192     RTPrintf("  --vmsvga-x11       starts VMSVGA dynamic resizing for X11\n");
     190    RTPrintf("  --vmsvga           starts VMSVGA dynamic resizing for x11/Wayland guests\n");
    193191    RTPrintf("  -f, --foreground   run in the foreground (no daemonizing)\n");
    194192    RTPrintf("  -d, --nodaemon     continues running as a system service\n");
     
    252250        { "--seamless",                     VBOXCLIENT_OPT_SEAMLESS,                  RTGETOPT_REQ_NOTHING },
    253251        { "--vmsvga",                       VBOXCLIENT_OPT_VMSVGA,                    RTGETOPT_REQ_NOTHING },
    254         { "--vmsvga-x11",                   VBOXCLIENT_OPT_VMSVGA_X11,                RTGETOPT_REQ_NOTHING }
    255252    };
    256253
     
    351348
    352349            case VBOXCLIENT_OPT_VMSVGA:
    353             {
    354                 if (g_pService)
    355                     return vbclSyntaxOnlyOneService();
    356                 g_pService = VBClDisplaySVGAService();
    357                 break;
    358             }
    359 
    360             case VBOXCLIENT_OPT_VMSVGA_X11:
    361350            {
    362351                if (g_pService)
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