* Followed Ingo's suggestion and send the message manually in the runtime loader;
therefore, we could remove the ugly defines from KMessage again, and compile it with KMESSAGE_CONTAINER_ONLY. * Added KMessage::SetDeliveryInfo() to be able to send messages with a correct header. * Fixed a bug in KMessage::SendTo() that would not send the senderTeam when passing a negative value for the parameter, but override it when passing in a valid value. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21740 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
/*
|
||||
* Copyright 2005, Ingo Weinhold, [email protected]. All rights reserved.
|
||||
* Copyright 2005-2007, Ingo Weinhold, [email protected]. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
#ifndef KMESSAGE_H
|
||||
#define KMESSAGE_H
|
||||
|
||||
@@ -119,6 +118,9 @@ public:
|
||||
port_id ReplyPort() const;
|
||||
int32 ReplyToken() const;
|
||||
|
||||
void SetDeliveryInfo(int32 targetToken, port_id replyPort,
|
||||
int32 replyToken, team_id senderTeam);
|
||||
|
||||
status_t SendTo(port_id targetPort, int32 targetToken = -1,
|
||||
port_id replyPort = -1, int32 replyToken = -1, bigtime_t timeout = -1,
|
||||
team_id senderTeam = -1);
|
||||
|
||||
Reference in New Issue
Block a user