Pahtz's changes from PortLink/BSession/PortMessage/PortQueue to BPortLink

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8519 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2004-07-30 15:15:27 +00:00
parent d0021b64bc
commit 3ceb31b96a
16 changed files with 3683 additions and 2480 deletions
+6 -7
View File
@@ -35,7 +35,6 @@
#include <AppDefs.h>
#include <Cursor.h>
#include <PortLink.h>
#include <PortMessage.h>
#include <AppServerLink.h>
// Project Includes ------------------------------------------------------------
@@ -60,13 +59,13 @@ BCursor::BCursor(const void *cursorData)
// Send data directly to server
BPrivate::BAppServerLink serverlink;
PortMessage msg;
int32 code=SERVER_FALSE;
serverlink.SetOpCode(AS_CREATE_BCURSOR);
serverlink.StartMessage(AS_CREATE_BCURSOR);
serverlink.Attach(cursorData, 68);
serverlink.FlushWithReply(&msg);
msg.Read<int32>(&m_serverToken);
serverlink.FlushWithReply(&code);
if(code==SERVER_TRUE)
serverlink.Read<int32>(&m_serverToken);
}
@@ -82,7 +81,7 @@ BCursor::~BCursor()
{
// Notify server to deallocate server-side objects for this cursor
BPrivate::BAppServerLink serverlink;
serverlink.SetOpCode(AS_DELETE_BCURSOR);
serverlink.StartMessage(AS_DELETE_BCURSOR);
serverlink.Attach<int32>(m_serverToken);
serverlink.Flush();
}