Changeset 21922 in vbox for trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
- Timestamp:
- Jul 31, 2009 6:01:58 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.