Changeset 21922 in vbox
- Timestamp:
- Jul 31, 2009 6:01:58 PM (16 years ago)
- Location:
- trunk/src/VBox/Additions/x11
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/Installer/98vboxadd-xclient
r18362 r21922 19 19 20 20 /usr/bin/VBoxClient --clipboard 21 /usr/bin/VBoxClient -- autoresize21 /usr/bin/VBoxClient --display 22 22 /usr/bin/VBoxClient --seamless -
trunk/src/VBox/Additions/x11/VBoxClient/Makefile.kmk
r21207 r21922 58 58 seamless-x11.cpp \ 59 59 thread.cpp \ 60 autoresize.cpp60 display.cpp 61 61 VBoxClient_LIBS += \ 62 62 Xext Xmu -
trunk/src/VBox/Additions/x11/VBoxClient/VBoxClient.h
r18360 r21922 45 45 extern Service *GetClipboardService(); 46 46 extern Service *GetSeamlessService(); 47 extern Service *Get AutoResizeService();47 extern Service *GetDisplayService(); 48 48 49 49 extern void CleanUp(); -
trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
r21912 r21922 1 1 /* $Id$ */ 2 2 /** @file 3 * X11 guest client - display auto-resize.3 * X11 guest client - display management. 4 4 */ 5 5 … … 38 38 #include "VBoxClient.h" 39 39 40 static int init AutoResize()40 static int initDisplay() 41 41 { 42 42 int rc = VINF_SUCCESS; … … 62 62 } 63 63 64 void cleanup AutoResize(void)64 void cleanupDisplay(void) 65 65 { 66 66 LogFlowFunc(("\n")); … … 87 87 * stale. 88 88 */ 89 int run AutoResize()89 int runDisplay() 90 90 { 91 91 LogFlowFunc(("\n")); … … 125 125 } 126 126 127 class AutoResizeService : public VBoxClient::Service127 class DisplayService : public VBoxClient::Service 128 128 { 129 129 public: 130 130 virtual const char *getPidFilePath() 131 131 { 132 return ".vboxclient- autoresize.pid";132 return ".vboxclient-display.pid"; 133 133 } 134 134 virtual int run() 135 135 { 136 int rc = init AutoResize();136 int rc = initDisplay(); 137 137 if (RT_SUCCESS(rc)) 138 rc = run AutoResize();138 rc = runDisplay(); 139 139 return rc; 140 140 } 141 141 virtual void cleanup() 142 142 { 143 cleanup AutoResize();143 cleanupDisplay(); 144 144 } 145 145 }; 146 146 147 VBoxClient::Service *VBoxClient::Get AutoResizeService()147 VBoxClient::Service *VBoxClient::GetDisplayService() 148 148 { 149 return new AutoResizeService;149 return new DisplayService; 150 150 } -
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r21218 r21922 147 147 void vboxClientUsage(const char *pcszFileName) 148 148 { 149 RTPrintf("Usage: %s --clipboard|-- autoresize|--seamless [-d|--nodaemon]\n", pcszFileName);149 RTPrintf("Usage: %s --clipboard|--display|--seamless [-d|--nodaemon]\n", pcszFileName); 150 150 RTPrintf("Start the VirtualBox X Window System guest services.\n\n"); 151 151 RTPrintf("Options:\n"); 152 152 RTPrintf(" --clipboard start the shared clipboard service\n"); 153 RTPrintf(" -- autoresize start the display auto-resizeservice\n");153 RTPrintf(" --display start the display management service\n"); 154 154 RTPrintf(" --seamless start the seamless windows service\n"); 155 155 RTPrintf(" -d, --nodaemon continue running as a system service\n"); … … 190 190 fSuccess = false; 191 191 } 192 else if (!strcmp(argv[i], "-- autoresize"))192 else if (!strcmp(argv[i], "--display")) 193 193 { 194 194 if (g_pService == NULL) 195 g_pService = VBoxClient::Get AutoResizeService();195 g_pService = VBoxClient::GetDisplayService(); 196 196 else 197 197 fSuccess = false;
Note:
See TracChangeset
for help on using the changeset viewer.