From 98a70bba4b85d888433d841b54215dc937e4c594 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Fri, 14 Nov 2003 01:41:04 +0000 Subject: [PATCH] Converted all BSessions used for replies to PortLinks git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5359 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/server/ServerApp.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/servers/app/server/ServerApp.cpp b/src/servers/app/server/ServerApp.cpp index e30e17008c..7c8f4c0e19 100644 --- a/src/servers/app/server/ServerApp.cpp +++ b/src/servers/app/server/ServerApp.cpp @@ -54,7 +54,7 @@ #include "LayerData.h" #include "Utils.h" -#define DEBUG_SERVERAPP +//#define DEBUG_SERVERAPP #ifdef DEBUG_SERVERAPP # include @@ -426,7 +426,7 @@ void ServerApp::_DispatchMessage(PortMessage *msg) msg->Read( &looperPort ); msg->ReadString( &title ); - STRACE(("ServerApp %s: Got 'New Window' message, trying to do something...\n", + STRACE(("ServerApp %s: Got 'New Window' message, trying to do smething...\n", _signature.String())); // ServerWindow constructor will reply with port_id of a newly created port @@ -701,9 +701,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) cursormanager->AddCursor(_appcursor); // Synchronous message - BApplication is waiting on the cursor's ID - BSession s(0,replyport); - s.WriteInt32(_appcursor->ID()); - s.Sync(); + PortLink link(replyport); + link.Attach(_appcursor->ID()); + link.Flush(); break; } case AS_DELETE_BCURSOR: @@ -728,9 +728,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) port_id replyport; msg->Read(&replyport); - BSession replysession(0,replyport); - replysession.WriteData(&sbi,sizeof(scroll_bar_info)); - replysession.Sync(); + PortLink link(replyport); + link.Attach(sbi); + link.Flush(); break; } case AS_SET_SCROLLBAR_INFO: @@ -750,9 +750,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) port_id replyport; msg->Read(&replyport); - BSession replysession(0,replyport); - replysession.WriteBool(GetFFMouse()); - replysession.Sync(); + PortLink link(replyport); + link.Attach(GetFFMouse()); + link.Flush(); break; } case AS_SET_FOCUS_FOLLOWS_MOUSE: @@ -782,9 +782,9 @@ void ServerApp::_DispatchMessage(PortMessage *msg) port_id replyport; msg->Read(&replyport); - BSession replysession(0,replyport); - replysession.WriteData(&mmode,sizeof(mode_mouse)); - replysession.Sync(); + PortLink link(replyport); + link.Attach(mmode); + link.Flush(); break; } case AS_GET_UI_COLOR: