Added a QueryServer() function for BMessage transfer.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6232 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eca8c2bc73
commit
0a580bde18
@ -90,6 +90,20 @@ status_t SendToServer(BMessage *msg)
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
QueryServer(BMessage &request, BMessage &reply)
|
||||
{
|
||||
status_t status = MediaServerMessenger->SendMessage(&request, &reply, TIMEOUT, TIMEOUT);
|
||||
if (status != B_OK) {
|
||||
ERROR("QueryServer: SendMessage failed, error 0x%08lx (%s)\n", status, strerror(status));
|
||||
DEBUG_ONLY(request.PrintToStream());
|
||||
DEBUG_ONLY(reply.PrintToStream);
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
// Raw data based data exchange with the media_server
|
||||
status_t SendToServer(int32 msgcode, command_data *msg, int size)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user