Changeset 27709 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Mar 25, 2010 3:01:21 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59316
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/clipboard.h
r25728 r27709 95 95 int init(void) 96 96 { 97 Log FlowThisFunc(("\n"));97 LogRelFlowFunc(("\n")); 98 98 int rc = mThreadFunction.init(); 99 99 if (RT_SUCCESS(rc)) … … 101 101 if (RT_SUCCESS(rc)) 102 102 mInit = true; 103 Log FlowThisFunc(("returning %Rrc\n", rc));103 LogRelFlowFunc(("returning %Rrc\n", rc)); 104 104 return rc; 105 105 } … … 110 110 void uninit(RTMSINTERVAL cMillies = RT_INDEFINITE_WAIT) 111 111 { 112 Log FlowThisFunc(("\n"));112 LogRelFlowFunc(("\n")); 113 113 if (mInit) 114 114 mThread.stop(cMillies, NULL); 115 Log FlowThisFunc(("returning\n"));115 LogRelFlowFunc(("returning\n")); 116 116 } 117 117 … … 121 121 ~VBoxGuestClipboard() 122 122 { 123 Log FlowThisFunc(("\n"));123 LogRelFlowFunc(("\n")); 124 124 if (mInit) 125 125 try { 126 126 uninit(2000); 127 127 } catch (...) { } 128 Log FlowThisFunc(("returning\n"));128 LogRelFlowFunc(("returning\n")); 129 129 } 130 130 }; -
trunk/src/VBox/Additions/x11/VBoxClient/display.cpp
r27601 r27709 45 45 uint32_t fMouseFeatures = 0; 46 46 47 Log FlowFunc(("testing dynamic resizing\n"));47 LogRelFlowFunc(("testing dynamic resizing\n")); 48 48 int iDummy; 49 49 if (!XRRQueryExtension(pDisplay, &iDummy, &iDummy)) … … 55 55 /* Log and ignore the return value, as there is not much we can do with 56 56 * it. */ 57 Log FlowFunc(("dynamic resizing: result %Rrc\n", rc));57 LogRelFlowFunc(("dynamic resizing: result %Rrc\n", rc)); 58 58 /* Enable support for switching between hardware and software cursors */ 59 Log FlowFunc(("enabling relative mouse re-capturing support\n"));59 LogRelFlowFunc(("enabling relative mouse re-capturing support\n")); 60 60 rc = VbglR3GetMouseStatus(&fMouseFeatures, NULL, NULL); 61 61 if (RT_SUCCESS(rc)) … … 79 79 | VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR); 80 80 } 81 Log FlowFunc(("mouse re-capturing support: result %Rrc\n", rc));81 LogRelFlowFunc(("mouse re-capturing support: result %Rrc\n", rc)); 82 82 return VINF_SUCCESS; 83 83 } … … 86 86 { 87 87 uint32_t fMouseFeatures = 0; 88 Log FlowFunc(("\n"));88 LogRelFlowFunc(("\n")); 89 89 VbglR3CtlFilterMask(0, VMMDEV_EVENT_DISPLAY_CHANGE_REQUEST 90 90 | VMMDEV_EVENT_MOUSE_CAPABILITIES_CHANGED); … … 93 93 VbglR3SetMouseStatus( fMouseFeatures 94 94 | VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR); 95 Log FlowFunc(("returning\n"));95 LogRelFlowFunc(("returning\n")); 96 96 } 97 97 … … 119 119 pConfig = XRRGetScreenInfo(pDisplay, DefaultRootWindow(pDisplay)); 120 120 /* Reset the current mode */ 121 Log FlowFunc(("Setting size %ux%u\n", cx, cy));121 LogRelFlowFunc(("Setting size %ux%u\n", cx, cy)); 122 122 if (pConfig) 123 123 { … … 130 130 unsigned uThisDist = VBCL_SQUARE(pSizes[i].width - cx) 131 131 + VBCL_SQUARE(pSizes[i].height - cy); 132 Log FlowFunc(("Found size %dx%d, distance %u\n", pSizes[i].width,132 LogRelFlowFunc(("Found size %dx%d, distance %u\n", pSizes[i].width, 133 133 pSizes[i].height, uThisDist)); 134 134 #undef VBCL_SQUARE … … 143 143 Time config_timestamp = 0; 144 144 XRRConfigTimes(pConfig, &config_timestamp); 145 Log FlowFunc(("Setting new size %d\n", iMode));145 LogRelFlowFunc(("Setting new size %d\n", iMode)); 146 146 XRRSetScreenConfig(pDisplay, pConfig, 147 147 DefaultRootWindow(pDisplay), iMode, … … 161 161 static int runDisplay(Display *pDisplay) 162 162 { 163 Log FlowFunc(("\n"));163 LogRelFlowFunc(("\n")); 164 164 Cursor hClockCursor = XCreateFontCursor(pDisplay, XC_watch); 165 165 Cursor hArrowCursor = XCreateFontCursor(pDisplay, XC_left_ptr); … … 199 199 } 200 200 } 201 Log FlowFunc(("returning VINF_SUCCESS\n"));201 LogRelFlowFunc(("returning VINF_SUCCESS\n")); 202 202 return VINF_SUCCESS; 203 203 } -
trunk/src/VBox/Additions/x11/VBoxClient/hostversion.cpp
r26505 r27709 52 52 if (conn == NULL) 53 53 { 54 Log Flow(("Could not retrieve D-BUS session bus!\n"));54 LogRelFlowFunc(("Could not retrieve D-BUS session bus!\n")); 55 55 rc = VERR_INVALID_HANDLE; 56 56 } … … 63 63 if (msg == NULL) 64 64 { 65 Log (("Could not create D-BUS message!\n"));65 LogRel(("Could not create D-BUS message!\n")); 66 66 rc = VERR_INVALID_HANDLE; 67 67 } … … 109 109 if (dbus_error_is_set(&err)) 110 110 { 111 Log (("D-BUS returned an error while sending the notification: %s", err.message));111 LogRel(("D-BUS returned an error while sending the notification: %s", err.message)); 112 112 } 113 113 else if (reply) … … 133 133 { 134 134 int rc; 135 Log FlowFunc(("\n"));135 LogRelFlowFunc(("\n")); 136 136 137 137 /* Because we need desktop notifications to be displayed, wait … … 154 154 rc = VbglR3GuestPropConnect(&uGuestPropSvcClientID); 155 155 if (RT_FAILURE(rc)) 156 Log (("Cannot connect to guest property service! rc = %Rrc\n", rc));156 LogRel(("Cannot connect to guest property service! rc = %Rrc\n", rc)); 157 157 } 158 158 … … 179 179 LogRel(("VBoxClient: VirtualBox Guest Additions update available!")); 180 180 if (RT_FAILURE(rc)) 181 Log (("VBoxClient: Could not show version notifier tooltip! rc = %d\n", rc));181 LogRel(("VBoxClient: Could not show version notifier tooltip! rc = %d\n", rc)); 182 182 } 183 183 … … 191 191 } 192 192 # endif /* VBOX_WITH_GUEST_PROPS */ 193 Log FlowFunc(("returning %Rrc\n", rc));193 LogRelFlowFunc(("returning %Rrc\n", rc)); 194 194 return rc; 195 195 } -
trunk/src/VBox/Additions/x11/VBoxClient/main.cpp
r25954 r27709 42 42 #include "VBoxClient.h" 43 43 44 #define TRACE RTPrintf("%s: %d\n", __PRETTY_FUNCTION__, __LINE__); Log (("%s: %d\n", __PRETTY_FUNCTION__, __LINE__))44 #define TRACE RTPrintf("%s: %d\n", __PRETTY_FUNCTION__, __LINE__); LogRel(("%s: %d\n", __PRETTY_FUNCTION__, __LINE__)) 45 45 46 46 static int (*gpfnOldIOErrorHandler)(Display *) = NULL; … … 76 76 void vboxClientSignalHandler(int cSignal) 77 77 { 78 Log (("VBoxClient: terminated with signal %d\n", cSignal));78 LogRel(("VBoxClient: terminated with signal %d\n", cSignal)); 79 79 /** Disable seamless mode */ 80 80 RTPrintf(("VBoxClient: terminating...\n")); … … 100 100 static int vboxClientXLibIOErrorHandler(Display *pDisplay) 101 101 { 102 Log (("VBoxClient: a fatal guest X Window error occurred. This may just mean that the Window system was shut down while the client was still running.\n"));102 LogRel(("VBoxClient: a fatal guest X Window error occurred. This may just mean that the Window system was shut down while the client was still running.\n")); 103 103 VBoxClient::CleanUp(); 104 104 return 0; /* We should never reach this. */ … … 113 113 struct sigaction sigAction; 114 114 115 Log FlowFunc(("\n"));115 LogRelFlowFunc(("\n")); 116 116 sigAction.sa_handler = vboxClientSignalHandler; 117 117 sigemptyset(&sigAction.sa_mask); … … 126 126 sigaction(SIGUSR1, &sigAction, NULL); 127 127 sigaction(SIGUSR2, &sigAction, NULL); 128 Log FlowFunc(("returning\n"));128 LogRelFlowFunc(("returning\n")); 129 129 } 130 130 … … 224 224 { 225 225 RTPrintf("VBoxClient: failed to daemonize. Exiting.\n"); 226 Log (("VBoxClient: failed to daemonize. Exiting.\n"));226 LogRel(("VBoxClient: failed to daemonize. Exiting.\n")); 227 227 # ifdef DEBUG 228 228 RTPrintf("Error %Rrc\n", rc); … … 237 237 { 238 238 RTPrintf("VBoxClient: failed to get home directory, rc=%Rrc. Exiting.\n", rc); 239 Log (("VBoxClient: failed to get home directory, rc=%Rrc. Exiting.\n", rc));239 LogRel(("VBoxClient: failed to get home directory, rc=%Rrc. Exiting.\n", rc)); 240 240 return 1; 241 241 } … … 244 244 { 245 245 RTPrintf("VBoxClient: RTPathAppend failed with rc=%Rrc. Exiting.\n", rc); 246 Log (("VBoxClient: RTPathAppend failed with rc=%Rrc. Exiting.\n", rc));246 LogRel(("VBoxClient: RTPathAppend failed with rc=%Rrc. Exiting.\n", rc)); 247 247 return 1; 248 248 } … … 252 252 { 253 253 RTPrintf("Failed to connect to the VirtualBox kernel service\n"); 254 Log (("Failed to connect to the VirtualBox kernel service\n"));254 LogRel(("Failed to connect to the VirtualBox kernel service\n")); 255 255 return 1; 256 256 } … … 258 258 { 259 259 RTPrintf("Failed to create a pidfile. Exiting.\n"); 260 Log (("Failed to create a pidfile. Exiting.\n"));260 LogRel(("Failed to create a pidfile. Exiting.\n")); 261 261 VbglR3Term(); 262 262 return 1; -
trunk/src/VBox/Additions/x11/VBoxClient/seamless-host.cpp
r25728 r27709 38 38 int rc = VERR_NOT_SUPPORTED; 39 39 40 Log FlowThisFunc(("\n"));40 LogRelFlowFunc(("\n")); 41 41 if (mRunning) /* Assertion */ 42 42 { … … 52 52 if (RT_SUCCESS(rc)) 53 53 { 54 Log (("VBoxClient: enabled seamless capability on host.\n"));54 LogRel(("VBoxClient: enabled seamless capability on host.\n")); 55 55 rc = mThread.start(); 56 56 if (RT_SUCCESS(rc)) … … 66 66 if (RT_FAILURE(rc)) 67 67 { 68 Log (("VBoxClient (seamless): failed to enable seamless capability on host, rc=%Rrc\n", rc));68 LogRel(("VBoxClient (seamless): failed to enable seamless capability on host, rc=%Rrc\n", rc)); 69 69 } 70 Log FlowThisFunc(("returning %Rrc\n", rc));70 LogRelFlowFunc(("returning %Rrc\n", rc)); 71 71 return rc; 72 72 } … … 75 75 void VBoxGuestSeamlessHost::stop(RTMSINTERVAL cMillies /* = RT_INDEFINITE_WAIT */) 76 76 { 77 Log FlowThisFunc(("returning\n"));77 LogRelFlowFunc(("returning\n")); 78 78 if (!mRunning) /* Assertion */ 79 79 { … … 85 85 VbglR3SeamlessSetCap(false); 86 86 mRunning = false; 87 Log FlowThisFunc(("returning\n"));87 LogRelFlowFunc(("returning\n")); 88 88 } 89 89 … … 97 97 VMMDevSeamlessMode newMode = VMMDev_Seamless_Disabled; 98 98 99 Log FlowThisFunc(("\n"));99 LogRelFlowFunc(("\n")); 100 100 int rc = VbglR3SeamlessWaitEvent(&newMode); 101 101 if (RT_SUCCESS(rc)) … … 129 129 else 130 130 { 131 Log Func(("VbglR3SeamlessWaitEvent returned %Rrc (VBoxClient)\n", rc));131 LogRelFunc(("VbglR3SeamlessWaitEvent returned %Rrc (VBoxClient)\n", rc)); 132 132 } 133 Log FlowThisFunc(("returning %Rrc\n", rc));133 LogRelFlowFunc(("returning %Rrc\n", rc)); 134 134 return rc; 135 135 } … … 140 140 void VBoxGuestSeamlessHost::updateRects(std::auto_ptr<std::vector<RTRECT> > pRects) 141 141 { 142 Log FlowThisFunc(("\n"));142 LogRelFlowFunc(("\n")); 143 143 if (0 == pRects.get()) /* Assertion */ 144 144 { … … 147 147 } 148 148 VbglR3SeamlessSendRects(pRects.get()->size(), pRects.get()->empty() ? NULL : &pRects.get()->front()); 149 Log FlowThisFunc(("returning\n"));149 LogRelFlowFunc(("returning\n")); 150 150 } 151 151 … … 158 158 int VBoxGuestSeamlessHostThread::threadFunction(VBoxGuestThread *pThread) 159 159 { 160 Log FlowThisFunc(("\n"));160 LogRelFlowFunc(("\n")); 161 161 if (0 != mHost) 162 162 { … … 172 172 } 173 173 } 174 Log FlowThisFunc(("returning VINF_SUCCESS\n"));174 LogRelFlowFunc(("returning VINF_SUCCESS\n")); 175 175 return VINF_SUCCESS; 176 176 } … … 181 181 void VBoxGuestSeamlessHostThread::stop(void) 182 182 { 183 Log FlowThisFunc(("\n"));183 LogRelFlowFunc(("\n")); 184 184 if (0 != mHost) 185 185 { … … 196 196 } 197 197 } 198 Log FlowThisFunc(("returning\n"));198 LogRelFlowFunc(("returning\n")); 199 199 } -
trunk/src/VBox/Additions/x11/VBoxClient/seamless-host.h
r25728 r27709 126 126 int init(VBoxGuestSeamlessObserver *pObserver) 127 127 { 128 Log FlowThisFunc(("\n"));128 LogRelFlowFunc(("\n")); 129 129 if (mObserver != 0) /* Assertion */ 130 130 { … … 133 133 } 134 134 mObserver = pObserver; 135 Log FlowThisFunc(("returning VINF_SUCCESS\n"));135 LogRelFlowFunc(("returning VINF_SUCCESS\n")); 136 136 return VINF_SUCCESS; 137 137 } … … 168 168 ~VBoxGuestSeamlessHost() 169 169 { 170 Log FlowThisFunc(("\n"));170 LogRelFlowFunc(("\n")); 171 171 if (mRunning) /* Assertion */ 172 172 { … … 178 178 catch(...) {} 179 179 } 180 Log FlowThisFunc(("returning\n"));180 LogRelFlowFunc(("returning\n")); 181 181 } 182 182 }; -
trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp
r21940 r27709 46 46 const char *aPropName, unsigned long *nItems) 47 47 { 48 Log FlowFunc(("\n"));48 LogRelFlowFunc(("\n")); 49 49 Atom propNameAtom = XInternAtom (aDpy, aPropName, 50 50 True /* only_if_exists */); … … 65 65 return NULL; 66 66 67 Log FlowFunc(("returning\n"));67 LogRelFlowFunc(("returning\n")); 68 68 return propVal; 69 69 } … … 78 78 int rc = VINF_SUCCESS; 79 79 80 Log FlowThisFunc(("\n"));80 LogRelFlowFunc(("\n")); 81 81 if (0 != mObserver) /* Assertion */ 82 82 { … … 90 90 } 91 91 mObserver = pObserver; 92 Log FlowThisFunc(("returning %Rrc\n", rc));92 LogRelFlowFunc(("returning %Rrc\n", rc)); 93 93 return rc; 94 94 } … … 108 108 int error, event; 109 109 110 Log FlowThisFunc(("\n"));110 LogRelFlowFunc(("\n")); 111 111 mSupportsShape = XShapeQueryExtension(mDisplay, &event, &error); 112 112 mEnabled = true; 113 113 monitorClientList(); 114 114 rebuildWindowTree(); 115 Log FlowThisFunc(("returning %Rrc\n", rc));115 LogRelFlowFunc(("returning %Rrc\n", rc)); 116 116 return rc; 117 117 } … … 121 121 void VBoxGuestSeamlessX11::stop(void) 122 122 { 123 Log FlowThisFunc(("\n"));123 LogRelFlowFunc(("\n")); 124 124 mEnabled = false; 125 125 unmonitorClientList(); 126 126 freeWindowTree(); 127 Log FlowThisFunc(("returning\n"));127 LogRelFlowFunc(("returning\n")); 128 128 } 129 129 130 130 void VBoxGuestSeamlessX11::monitorClientList(void) 131 131 { 132 Log FlowThisFunc(("called\n"));132 LogRelFlowFunc(("called\n")); 133 133 XSelectInput(mDisplay, DefaultRootWindow(mDisplay.get()), SubstructureNotifyMask); 134 134 } … … 136 136 void VBoxGuestSeamlessX11::unmonitorClientList(void) 137 137 { 138 Log FlowThisFunc(("called\n"));138 LogRelFlowFunc(("called\n")); 139 139 XSelectInput(mDisplay, DefaultRootWindow(mDisplay.get()), 0); 140 140 } … … 146 146 void VBoxGuestSeamlessX11::rebuildWindowTree(void) 147 147 { 148 Log FlowThisFunc(("called\n"));148 LogRelFlowFunc(("called\n")); 149 149 freeWindowTree(); 150 150 addClients(DefaultRootWindow(mDisplay.get())); … … 170 170 unsigned cChildren; 171 171 172 Log FlowThisFunc(("\n"));172 LogRelFlowFunc(("\n")); 173 173 if (!XQueryTree(mDisplay.get(), hRoot, &hRealRoot, &hParent, &phChildrenRaw, &cChildren)) 174 174 return; … … 176 176 for (unsigned i = 0; i < cChildren; ++i) 177 177 addClientWindow(phChildren.get()[i]); 178 Log FlowThisFunc(("returning\n"));178 LogRelFlowFunc(("returning\n")); 179 179 } 180 180 … … 182 182 void VBoxGuestSeamlessX11::addClientWindow(const Window hWin) 183 183 { 184 Log FlowThisFunc(("\n"));184 LogRelFlowFunc(("\n")); 185 185 XWindowAttributes winAttrib; 186 186 bool fAddWin = true; … … 202 202 &dummyLong))) 203 203 { 204 Log FlowFunc(("window %lu, client window %lu has no size hints\n",204 LogRelFlowFunc(("window %lu, client window %lu has no size hints\n", 205 205 hWin, hClient)); 206 206 fAddWin = false; … … 212 212 bool hasShape = false; 213 213 214 Log FlowFunc(("adding window %lu, client window %lu\n", hWin,214 LogRelFlowFunc(("adding window %lu, client window %lu\n", hWin, 215 215 hClient)); 216 216 if (mSupportsShape) … … 234 234 winAttrib.width, winAttrib.height, cRects, rects); 235 235 } 236 Log FlowThisFunc(("returning\n"));236 LogRelFlowFunc(("returning\n")); 237 237 } 238 238 … … 250 250 bool rc = false; 251 251 252 Log FlowThisFunc(("\n"));252 LogRelFlowFunc(("\n")); 253 253 windowTypeRaw = XXGetProperty(mDisplay, hWin, XA_ATOM, WM_TYPE_PROP, &ulCount); 254 254 if (windowTypeRaw != NULL) … … 259 259 rc = true; 260 260 } 261 Log FlowThisFunc(("returning %s\n", rc ? "true" : "false"));261 LogRelFlowFunc(("returning %s\n", rc ? "true" : "false")); 262 262 return rc; 263 263 } … … 270 270 { 271 271 /* We use post-increment in the operation to prevent the iterator from being invalidated. */ 272 Log FlowThisFunc(("\n"));272 LogRelFlowFunc(("\n")); 273 273 for (VBoxGuestWindowList::iterator it = mGuestWindows.begin(); it != mGuestWindows.end(); 274 274 mGuestWindows.removeWindow(it++)) … … 276 276 XShapeSelectInput(mDisplay, it->first, 0); 277 277 } 278 Log FlowThisFunc(("returning\n"));278 LogRelFlowFunc(("returning\n")); 279 279 } 280 280 … … 289 289 XEvent event; 290 290 291 Log FlowThisFunc(("\n"));291 LogRelFlowFunc(("\n")); 292 292 /* Start by sending information about the current window setup to the host. We do this 293 293 here because we want to send all such information from a single thread. */ … … 314 314 break; 315 315 } 316 Log FlowThisFunc(("returning\n"));316 LogRelFlowFunc(("returning\n")); 317 317 } 318 318 … … 324 324 void VBoxGuestSeamlessX11::doConfigureEvent(Window hWin) 325 325 { 326 Log FlowThisFunc(("\n"));326 LogRelFlowFunc(("\n")); 327 327 VBoxGuestWindowList::iterator iter; 328 328 … … 352 352 mChanged = true; 353 353 } 354 Log FlowThisFunc(("returning\n"));354 LogRelFlowFunc(("returning\n")); 355 355 } 356 356 … … 362 362 void VBoxGuestSeamlessX11::doMapEvent(Window hWin) 363 363 { 364 Log FlowThisFunc(("\n"));364 LogRelFlowFunc(("\n")); 365 365 VBoxGuestWindowList::iterator iter; 366 366 … … 371 371 mChanged = true; 372 372 } 373 Log FlowThisFunc(("returning\n"));373 LogRelFlowFunc(("returning\n")); 374 374 } 375 375 … … 382 382 void VBoxGuestSeamlessX11::doShapeEvent(Window hWin) 383 383 { 384 Log FlowThisFunc(("\n"));384 LogRelFlowFunc(("\n")); 385 385 VBoxGuestWindowList::iterator iter; 386 386 … … 400 400 mChanged = true; 401 401 } 402 Log FlowThisFunc(("returning\n"));402 LogRelFlowFunc(("returning\n")); 403 403 } 404 404 … … 410 410 void VBoxGuestSeamlessX11::doUnmapEvent(Window hWin) 411 411 { 412 Log FlowThisFunc(("\n"));412 LogRelFlowFunc(("\n")); 413 413 VBoxGuestWindowList::iterator iter; 414 414 … … 419 419 mChanged = true; 420 420 } 421 Log FlowThisFunc(("returning\n"));421 LogRelFlowFunc(("returning\n")); 422 422 } 423 423 … … 427 427 std::auto_ptr<std::vector<RTRECT> > VBoxGuestSeamlessX11::getRects(void) 428 428 { 429 Log FlowThisFunc(("\n"));429 LogRelFlowFunc(("\n")); 430 430 unsigned cRects = 0; 431 431 std::auto_ptr<std::vector<RTRECT> > apRects(new std::vector<RTRECT>); … … 471 471 } 472 472 mcRects = cRects; 473 Log FlowThisFunc(("returning\n"));473 LogRelFlowFunc(("returning\n")); 474 474 return apRects; 475 475 } … … 484 484 bool rc = false; 485 485 486 Log FlowThisFunc(("\n"));486 LogRelFlowFunc(("\n")); 487 487 /* Message contents set to zero. */ 488 488 XClientMessageEvent clientMessage = { ClientMessage, 0, 0, 0, 0, 0, 8 }; … … 494 494 rc = true; 495 495 } 496 Log FlowThisFunc(("returning %s\n", rc ? "true" : "false"));496 LogRelFlowFunc(("returning %s\n", rc ? "true" : "false")); 497 497 return rc; 498 498 } -
trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.h
r21441 r27709 146 146 bool init(char *name = NULL) 147 147 { 148 Log FlowThisFunc(("\n"));148 LogRelFlowFunc(("\n")); 149 149 mDisplay = XOpenDisplay(name); 150 Log FlowThisFunc(("returning\n"));150 LogRelFlowFunc(("returning\n")); 151 151 return (mDisplay != NULL); 152 152 } … … 156 156 int close(void) 157 157 { 158 Log FlowThisFunc(("\n"));158 LogRelFlowFunc(("\n")); 159 159 int rc = XCloseDisplay(mDisplay); 160 160 mDisplay = NULL; 161 Log FlowThisFunc(("returning\n"));161 LogRelFlowFunc(("returning\n")); 162 162 return rc; 163 163 } … … 244 244 VBoxGuestX11Pointer<XRectangle> rects) 245 245 { 246 Log FlowThisFunc(("\n"));246 LogRelFlowFunc(("\n")); 247 247 VBoxGuestWinInfo *pInfo = new VBoxGuestWinInfo(isMapped, x, y, w, h, cRects, 248 248 rects); 249 249 mWindows.insert(std::pair<Window, VBoxGuestWinInfo *>(hWin, pInfo)); 250 Log FlowThisFunc(("returning\n"));250 LogRelFlowFunc(("returning\n")); 251 251 } 252 252 253 253 void removeWindow(iterator it) 254 254 { 255 Log FlowThisFunc(("called\n"));255 LogRelFlowFunc(("called\n")); 256 256 delete it->second; 257 257 mWindows.erase(it); … … 260 260 void removeWindow(Window hWin) 261 261 { 262 Log FlowThisFunc(("called\n"));262 LogRelFlowFunc(("called\n")); 263 263 removeWindow(find(hWin)); 264 264 } -
trunk/src/VBox/Additions/x11/VBoxClient/seamless.h
r25728 r27709 59 59 int rc = VINF_SUCCESS; 60 60 61 Log FlowThisFunc(("\n"));61 LogRelFlowFunc(("\n")); 62 62 rc = mGuest->start(); 63 63 if (RT_SUCCESS(rc)) … … 69 69 mGuest->stop(); 70 70 } 71 Log FlowThisFunc(("returning %Rrc\n", rc));71 LogRelFlowFunc(("returning %Rrc\n", rc)); 72 72 return rc; 73 73 } … … 148 148 int rc = VINF_SUCCESS; 149 149 150 Log FlowThisFunc(("\n"));150 LogRelFlowFunc(("\n")); 151 151 if (isInitialised) /* Assertion */ 152 152 { … … 172 172 if (RT_FAILURE(rc)) 173 173 { 174 Log Func(("returning %Rrc (VBoxClient)\n", rc));175 } 176 Log FlowThisFunc(("returning %Rrc\n", rc));174 LogRelFunc(("returning %Rrc (VBoxClient)\n", rc)); 175 } 176 LogRelFlowFunc(("returning %Rrc\n", rc)); 177 177 return rc; 178 178 } … … 180 180 void uninit(RTMSINTERVAL cMillies = RT_INDEFINITE_WAIT) 181 181 { 182 Log FlowThisFunc(("\n"));182 LogRelFlowFunc(("\n")); 183 183 if (isInitialised) 184 184 { … … 188 188 isInitialised = false; 189 189 } 190 Log FlowThisFunc(("returning\n"));190 LogRelFlowFunc(("returning\n")); 191 191 } 192 192 -
trunk/src/VBox/Additions/x11/VBoxClient/thread.cpp
r25728 r27709 30 30 int rc = VINF_SUCCESS; 31 31 32 Log FlowThisFunc(("\n"));32 LogRelFlowFunc(("\n")); 33 33 if (NIL_RTTHREAD == mSelf) /* Assertion */ 34 34 { … … 50 50 } 51 51 } 52 Log FlowThisFunc(("returning %Rrc\n", rc));52 LogRelFlowFunc(("returning %Rrc\n", rc)); 53 53 return rc; 54 54 } … … 57 57 VBoxGuestThread::~VBoxGuestThread(void) 58 58 { 59 Log FlowThisFunc(("\n"));59 LogRelFlowFunc(("\n")); 60 60 if (NIL_RTTHREAD != mSelf) 61 61 { … … 67 67 catch(...) {} 68 68 } 69 Log FlowThisFunc(("returning\n"));69 LogRelFlowFunc(("returning\n")); 70 70 } 71 71 … … 75 75 int rc = VINF_SUCCESS; 76 76 77 Log FlowThisFunc(("returning\n"));77 LogRelFlowFunc(("returning\n")); 78 78 if (NIL_RTTHREAD != mSelf) /* Assertion */ 79 79 { … … 84 84 rc = RTThreadCreate(&mSelf, threadFunction, reinterpret_cast<void *>(this), 85 85 mStack, mType, mFlags, mName); 86 Log FlowThisFunc(("returning %Rrc\n", rc));86 LogRelFlowFunc(("returning %Rrc\n", rc)); 87 87 return rc; 88 88 } … … 99 99 int rc = VINF_SUCCESS; 100 100 101 Log FlowFunc(("\n"));101 LogRelFlowFunc(("\n")); 102 102 PSELF pSelf = reinterpret_cast<PSELF>(pvUser); 103 103 pSelf->mRunning = true; … … 117 117 } 118 118 pSelf->mRunning = false; 119 Log FlowFunc(("returning %Rrc\n", rc));119 LogRelFlowFunc(("returning %Rrc\n", rc)); 120 120 return rc; 121 121 }
Note:
See TracChangeset
for help on using the changeset viewer.