Changeset 84538 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- May 26, 2020 1:25:05 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138267
- 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 26 26 # 27 27 PROGRAMS += VBoxClient 28 PROGRAMS += VBoxWaylandClient 28 29 29 30 VBoxClient_TEMPLATE = NewVBoxGuestR3Exe … … 41 42 VBoxClient_SOURCES = \ 42 43 main.cpp \ 43 display-svga.cpp \44 44 display-svga-x11.cpp \ 45 45 seamless.cpp \ … … 47 47 logging.cpp \ 48 48 hostversion.cpp 49 50 VBoxWaylandClient_TEMPLATE = NewVBoxGuestR3Exe 51 VBoxWaylandClient_DEFS += VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" 52 VBoxWaylandClient_SOURCES = \ 53 display-wayland.cpp \ 54 logging.cpp 55 49 56 50 57 VBoxClient_SOURCES.linux = \ -
trunk/src/VBox/Additions/x11/VBoxClient/display-wayland.cpp
r84537 r84538 49 49 #include <stdio.h> 50 50 51 51 52 /** Maximum number of supported screens. DRM and X11 both limit this to 32. */ 52 53 /** @todo if this ever changes, dynamically allocate resizeable arrays in the … … 63 64 64 65 #define DRM_DRIVER_NAME "vmwgfx" 66 67 /** Counter of how often our daemon has been respawned. */ 68 unsigned g_cRespawn = 0; 69 /** Logging verbosity level. */ 70 unsigned g_cVerbosity = 0; 65 71 66 72 /** DRM version structure. */ … … 167 173 } 168 174 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; 175 int main() 176 { 183 177 struct DRMCONTEXT drmContext = { NIL_RTFILE }; 184 178 static struct VMMDevDisplayDef aMonitors[VMW_MAX_HEADS]; … … 199 193 if (RT_FAILURE(rc)) 200 194 VBClLogFatalError("Failed to register resizing support, rc=%Rrc\n", rc); 195 201 196 for (;;) 202 197 { … … 262 257 VBClLogFatalError("Failure waiting for event, rc=%Rrc\n", rc); 263 258 } 259 return 0; 264 260 } 265 266 static struct VBCLSERVICE interface =267 {268 getName,269 getPidFilePath,270 VBClServiceDefaultHandler, /* Init */271 run,272 VBClServiceDefaultCleanup273 }, *pInterface = &interface;274 275 struct VBCLSERVICE **VBClDisplaySVGAService()276 {277 return &pInterface;278 } -
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r84503 r84538 48 48 #define VBOXCLIENT_OPT_SEAMLESS VBOXCLIENT_OPT_SERVICES + 3 49 49 #define VBOXCLIENT_OPT_VMSVGA VBOXCLIENT_OPT_SERVICES + 4 50 #define VBOXCLIENT_OPT_VMSVGA_X11 VBOXCLIENT_OPT_SERVICES + 551 50 52 51 … … 175 174 #endif 176 175 "--seamless|" 177 "--vmsvga |--vmsvga-x11"176 "--vmsvga" 178 177 "[-d|--nodaemon]\n", pcszFileName); 179 178 RTPrintf("Starts the VirtualBox DRM/X Window System guest services.\n\n"); … … 189 188 #endif 190 189 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"); 193 191 RTPrintf(" -f, --foreground run in the foreground (no daemonizing)\n"); 194 192 RTPrintf(" -d, --nodaemon continues running as a system service\n"); … … 252 250 { "--seamless", VBOXCLIENT_OPT_SEAMLESS, RTGETOPT_REQ_NOTHING }, 253 251 { "--vmsvga", VBOXCLIENT_OPT_VMSVGA, RTGETOPT_REQ_NOTHING }, 254 { "--vmsvga-x11", VBOXCLIENT_OPT_VMSVGA_X11, RTGETOPT_REQ_NOTHING }255 252 }; 256 253 … … 351 348 352 349 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:361 350 { 362 351 if (g_pService)
Note:
See TracChangeset
for help on using the changeset viewer.