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:
parent
22365ebc40
commit
c4b1e37117
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user