Fixed build of the fake_app_server - there still were some references to
SERVER_TRUE/FALSE. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17238 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -194,8 +194,8 @@ AppServer::MainLoop(void)
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
STRACE(("Server::MainLoop received unexpected code %ld (offset %ld)\n",
|
STRACE(("Server::MainLoop received unexpected code %ld\n",
|
||||||
code, code - SERVER_TRUE));
|
code));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -278,7 +278,7 @@ AppServer::DispatchMessage(int32 code, BPrivate::PortLink &msg)
|
|||||||
release_sem(fAppListLock);
|
release_sem(fAppListLock);
|
||||||
|
|
||||||
BPrivate::PortLink replylink(clientReplyPort);
|
BPrivate::PortLink replylink(clientReplyPort);
|
||||||
replylink.StartMessage(SERVER_TRUE);
|
replylink.StartMessage(B_OK);
|
||||||
replylink.Attach<int32>(serverListen);
|
replylink.Attach<int32>(serverListen);
|
||||||
replylink.Flush();
|
replylink.Flush();
|
||||||
|
|
||||||
|
|||||||
@@ -276,7 +276,7 @@ ServerApp::DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
STRACE(("ServerApp %s: get current workspace\n", fSignature.String()));
|
STRACE(("ServerApp %s: get current workspace\n", fSignature.String()));
|
||||||
|
|
||||||
// TODO: Locking this way is not nice
|
// TODO: Locking this way is not nice
|
||||||
fLink.StartMessage(SERVER_TRUE);
|
fLink.StartMessage(B_OK);
|
||||||
fLink.Attach<int32>(0);
|
fLink.Attach<int32>(0);
|
||||||
fLink.Flush();
|
fLink.Flush();
|
||||||
break;
|
break;
|
||||||
@@ -299,7 +299,7 @@ ServerApp::DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
STRACE(("ServerApp %s: Received IsCursorHidden request\n", fSignature.String()));
|
STRACE(("ServerApp %s: Received IsCursorHidden request\n", fSignature.String()));
|
||||||
// Attached data
|
// Attached data
|
||||||
// 1) int32 port to reply to
|
// 1) int32 port to reply to
|
||||||
fLink.StartMessage(fCursorHidden ? SERVER_TRUE : SERVER_FALSE);
|
fLink.StartMessage(fCursorHidden ? B_OK : B_ERROR);
|
||||||
fLink.Flush();
|
fLink.Flush();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -310,7 +310,7 @@ ServerApp::DispatchMessage(int32 code, BPrivate::LinkReceiver &link)
|
|||||||
|
|
||||||
if (link.NeedsReply()) {
|
if (link.NeedsReply()) {
|
||||||
// the client is now blocking and waiting for a reply!
|
// the client is now blocking and waiting for a reply!
|
||||||
fLink.StartMessage(SERVER_FALSE);
|
fLink.StartMessage(B_ERROR);
|
||||||
fLink.Flush();
|
fLink.Flush();
|
||||||
} else
|
} else
|
||||||
puts("message doesn't need a reply!");
|
puts("message doesn't need a reply!");
|
||||||
|
|||||||
Reference in New Issue
Block a user