Added support for the AS_GET_DESKTOP command.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13896 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-08-04 14:42:06 +00:00
parent 22365ebc40
commit c4b1e37117

View File

@ -358,6 +358,22 @@ void
AppServer::DispatchMessage(int32 code, BPrivate::PortLink &msg)
{
switch (code) {
case AS_GET_DESKTOP:
{
port_id replyPort;
if (msg.Read<port_id>(&replyPort) < B_OK)
break;
int32 userID;
msg.Read<int32>(&userID);
BPrivate::LinkSender reply(replyPort);
reply.StartMessage(B_OK);
reply.Attach<port_id>(fMessagePort);
reply.Flush();
break;
}
case AS_CREATE_APP:
{
// Create the ServerApp to node monitor a new BApplication