2009-11-11 12:16:32 +03:00
|
|
|
/*
|
2002-10-02 05:04:48 +04:00
|
|
|
* Copyright 2002, Marcus Overhagen. All rights reserved.
|
2009-04-09 01:17:03 +04:00
|
|
|
* Copyright 2009, Axel Dörfler, axeld@pinc-software.de.
|
|
|
|
*
|
2002-10-02 05:04:48 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _DATA_EXCHANGE_H
|
|
|
|
#define _DATA_EXCHANGE_H
|
|
|
|
|
2009-11-11 12:16:32 +03:00
|
|
|
|
2009-12-09 19:57:22 +03:00
|
|
|
#include <ServerInterface.h>
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
|
2002-10-02 05:04:48 +04:00
|
|
|
namespace BPrivate {
|
|
|
|
namespace media {
|
|
|
|
namespace dataexchange {
|
|
|
|
|
|
|
|
|
2010-01-05 19:53:55 +03:00
|
|
|
void InitDataExchange();
|
|
|
|
|
2002-10-02 05:04:48 +04:00
|
|
|
// BMessage based data exchange with the media_server
|
2009-12-09 19:22:24 +03:00
|
|
|
status_t SendToServer(BMessage* msg);
|
|
|
|
status_t QueryServer(BMessage& request, BMessage& reply);
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
// Raw data based data exchange with the media_server
|
2009-12-09 19:22:24 +03:00
|
|
|
status_t SendToServer(int32 msgCode, command_data* msg, size_t size);
|
|
|
|
status_t QueryServer(int32 msgCode, request_data* request, size_t requestSize,
|
|
|
|
reply_data* reply, size_t replySize);
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
// Raw data based data exchange with the media_addon_server
|
2009-12-09 19:22:24 +03:00
|
|
|
status_t SendToAddOnServer(int32 msgCode, command_data *msg, size_t size);
|
|
|
|
status_t QueryAddOnServer(int32 msgCode, request_data* request,
|
|
|
|
size_t requestSize, reply_data* reply, size_t replySize);
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2003-06-13 04:43:53 +04:00
|
|
|
// Raw data based data exchange with any (media node control-) port
|
2009-12-09 19:22:24 +03:00
|
|
|
status_t SendToPort(port_id sendPort, int32 msgCode, command_data* msg,
|
|
|
|
size_t size);
|
|
|
|
status_t QueryPort(port_id requestPort, int32 msgCode, request_data* request,
|
|
|
|
size_t requestSize, reply_data* reply, size_t replySize);
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
|
2009-12-09 20:40:45 +03:00
|
|
|
} // namespace dataexchange
|
|
|
|
} // namespace media
|
|
|
|
} // namespace BPrivate
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2009-12-08 22:56:04 +03:00
|
|
|
|
2009-12-09 19:57:22 +03:00
|
|
|
using namespace BPrivate::media::dataexchange;
|
2008-03-29 23:53:01 +03:00
|
|
|
|
|
|
|
|
2002-10-02 05:04:48 +04:00
|
|
|
#endif // _DATA_EXCHANGE_H
|