2002-10-02 05:04:48 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2002, Marcus Overhagen. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _DATA_EXCHANGE_H
|
|
|
|
#define _DATA_EXCHANGE_H
|
|
|
|
|
2005-11-13 02:27:14 +03:00
|
|
|
#include <string.h>
|
|
|
|
|
2003-12-02 01:20:59 +03:00
|
|
|
#include <MediaFormats.h>
|
2002-10-02 05:04:48 +04:00
|
|
|
#include <MediaNode.h>
|
|
|
|
#include <MediaAddOn.h>
|
2002-11-20 04:28:23 +03:00
|
|
|
#include <Messenger.h>
|
2002-12-09 02:49:40 +03:00
|
|
|
#include <Buffer.h>
|
2002-10-02 05:04:48 +04:00
|
|
|
#include <Entry.h>
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
namespace media {
|
|
|
|
namespace dataexchange {
|
|
|
|
|
|
|
|
struct reply_data;
|
|
|
|
struct request_data;
|
2002-11-03 19:03:23 +03:00
|
|
|
struct command_data;
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
// BMessage based data exchange with the media_server
|
|
|
|
status_t SendToServer(BMessage *msg);
|
2004-01-23 04:10:46 +03:00
|
|
|
status_t QueryServer(BMessage &request, BMessage &reply);
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
// Raw data based data exchange with the media_server
|
2002-11-03 19:03:23 +03:00
|
|
|
status_t SendToServer(int32 msgcode, command_data *msg, int size);
|
2002-10-02 20:54:53 +04:00
|
|
|
status_t QueryServer(int32 msgcode, request_data *request, int requestsize, reply_data *reply, int replysize);
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
// Raw data based data exchange with the media_addon_server
|
2002-11-03 19:03:23 +03:00
|
|
|
status_t SendToAddonServer(int32 msgcode, command_data *msg, int size);
|
2002-10-02 20:54:53 +04:00
|
|
|
status_t QueryAddonServer(int32 msgcode, request_data *request, int requestsize, reply_data *reply, int 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
|
2002-11-03 19:03:23 +03:00
|
|
|
status_t SendToPort(port_id sendport, int32 msgcode, command_data *msg, int size);
|
2002-10-02 20:54:53 +04:00
|
|
|
status_t QueryPort(port_id requestport, int32 msgcode, request_data *request, int requestsize, reply_data *reply, int replysize);
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
// The base struct used for all raw requests
|
|
|
|
struct request_data
|
|
|
|
{
|
|
|
|
port_id reply_port;
|
|
|
|
|
2002-10-09 03:59:43 +04:00
|
|
|
status_t SendReply(status_t result, reply_data *reply, int replysize) const;
|
2002-10-02 05:04:48 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
// The base struct used for all raw replys
|
|
|
|
struct reply_data
|
|
|
|
{
|
|
|
|
status_t result;
|
|
|
|
};
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
// The base struct used for all raw commands (asynchronous, no answer)
|
|
|
|
struct command_data
|
|
|
|
{
|
|
|
|
// yes, it's empty ;)
|
|
|
|
};
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
}; // dataexchange
|
|
|
|
}; // media
|
|
|
|
}; // BPrivate
|
|
|
|
|
|
|
|
using namespace BPrivate::media::dataexchange;
|
|
|
|
|
2002-10-03 02:12:10 +04:00
|
|
|
// BMessage based server communication
|
2002-10-02 05:04:48 +04:00
|
|
|
enum {
|
|
|
|
// BMediaRoster notification service
|
|
|
|
MEDIA_SERVER_REQUEST_NOTIFICATIONS = 1000,
|
|
|
|
MEDIA_SERVER_CANCEL_NOTIFICATIONS,
|
2004-01-23 04:10:46 +03:00
|
|
|
MEDIA_SERVER_SEND_NOTIFICATIONS,
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2004-01-23 04:10:46 +03:00
|
|
|
MEDIA_SERVER_GET_FORMATS,
|
2004-02-02 08:26:40 +03:00
|
|
|
MEDIA_SERVER_MAKE_FORMAT_FOR,
|
2007-04-16 00:40:12 +04:00
|
|
|
|
2007-04-16 23:15:46 +04:00
|
|
|
// add_system_beep_event()
|
|
|
|
MEDIA_SERVER_ADD_SYSTEM_BEEP_EVENT,
|
|
|
|
|
|
|
|
// media addon server
|
|
|
|
MEDIA_ADDON_SERVER_PLAY_MEDIA = '_TRU'
|
2002-10-02 05:04:48 +04:00
|
|
|
};
|
|
|
|
|
2007-04-16 23:15:46 +04:00
|
|
|
|
2002-10-03 02:12:10 +04:00
|
|
|
// Raw port based communication
|
|
|
|
enum {
|
2002-11-20 04:28:23 +03:00
|
|
|
ADDONSERVER_RESCAN_MEDIAADDON_FLAVORS = 0x50,
|
|
|
|
|
2002-10-10 22:55:47 +04:00
|
|
|
SERVER_MESSAGE_START = 0x100,
|
2002-11-20 04:28:23 +03:00
|
|
|
SERVER_REGISTER_APP,
|
|
|
|
SERVER_UNREGISTER_APP,
|
2002-10-10 22:55:47 +04:00
|
|
|
SERVER_GET_NODE,
|
2002-10-03 02:12:10 +04:00
|
|
|
SERVER_SET_NODE,
|
2002-10-04 04:45:20 +04:00
|
|
|
SERVER_PUBLISH_INPUTS,
|
|
|
|
SERVER_PUBLISH_OUTPUTS,
|
2002-10-05 17:02:26 +04:00
|
|
|
SERVER_NODE_ID_FOR,
|
|
|
|
SERVER_GET_LIVE_NODE_INFO,
|
|
|
|
SERVER_GET_LIVE_NODES,
|
|
|
|
SERVER_GET_NODE_FOR,
|
|
|
|
SERVER_RELEASE_NODE,
|
|
|
|
SERVER_REGISTER_NODE,
|
|
|
|
SERVER_UNREGISTER_NODE,
|
2002-10-05 23:45:50 +04:00
|
|
|
SERVER_GET_DORMANT_NODE_FOR,
|
|
|
|
SERVER_GET_INSTANCES_FOR,
|
2002-12-09 02:49:40 +03:00
|
|
|
SERVER_GET_SHARED_BUFFER_AREA,
|
|
|
|
SERVER_REGISTER_BUFFER,
|
2002-12-26 05:23:59 +03:00
|
|
|
SERVER_UNREGISTER_BUFFER,
|
|
|
|
SERVER_RESCAN_DEFAULTS,
|
2003-03-16 06:52:52 +03:00
|
|
|
SERVER_SET_NODE_CREATOR,
|
2003-03-22 04:11:07 +03:00
|
|
|
SERVER_CHANGE_ADDON_FLAVOR_INSTANCES_COUNT,
|
2003-11-12 12:36:48 +03:00
|
|
|
SERVER_REWINDTYPES,
|
|
|
|
SERVER_REWINDREFS,
|
|
|
|
SERVER_GETREFFOR,
|
|
|
|
SERVER_SETREFFOR,
|
|
|
|
SERVER_REMOVEREFFOR,
|
|
|
|
SERVER_REMOVEITEM,
|
2003-12-02 01:20:59 +03:00
|
|
|
SERVER_GET_FORMAT_FOR_DESCRIPTION,
|
2003-12-14 22:23:16 +03:00
|
|
|
SERVER_GET_DESCRIPTION_FOR_FORMAT,
|
|
|
|
SERVER_GET_READERS,
|
|
|
|
SERVER_GET_DECODER_FOR_FORMAT,
|
2002-10-10 22:55:47 +04:00
|
|
|
SERVER_MESSAGE_END,
|
|
|
|
NODE_MESSAGE_START = 0x200,
|
|
|
|
|
|
|
|
NODE_START,
|
|
|
|
NODE_STOP,
|
|
|
|
NODE_SEEK,
|
|
|
|
NODE_SET_RUN_MODE,
|
|
|
|
NODE_TIME_WARP,
|
|
|
|
NODE_PREROLL,
|
|
|
|
NODE_SET_TIMESOURCE,
|
2003-06-01 21:18:24 +04:00
|
|
|
NODE_GET_TIMESOURCE,
|
2002-10-10 22:55:47 +04:00
|
|
|
NODE_REQUEST_COMPLETED,
|
2003-03-15 02:12:11 +03:00
|
|
|
NODE_FINAL_RELEASE,
|
2002-10-10 22:55:47 +04:00
|
|
|
|
|
|
|
NODE_MESSAGE_END,
|
|
|
|
CONSUMER_MESSAGE_START = 0x300,
|
|
|
|
CONSUMER_GET_NEXT_INPUT,
|
2002-10-04 04:45:20 +04:00
|
|
|
CONSUMER_DISPOSE_INPUT_COOKIE,
|
2002-10-03 02:12:10 +04:00
|
|
|
CONSUMER_ACCEPT_FORMAT,
|
|
|
|
CONSUMER_CONNECTED,
|
2002-10-05 17:02:26 +04:00
|
|
|
CONSUMER_DISCONNECTED,
|
2002-10-10 22:55:47 +04:00
|
|
|
|
|
|
|
CONSUMER_BUFFER_RECEIVED,
|
|
|
|
CONSUMER_PRODUCER_DATA_STATUS,
|
|
|
|
CONSUMER_GET_LATENCY_FOR,
|
|
|
|
CONSUMER_FORMAT_CHANGED,
|
|
|
|
CONSUMER_SEEK_TAG_REQUESTED,
|
|
|
|
|
|
|
|
CONSUMER_MESSAGE_END,
|
|
|
|
PRODUCER_MESSAGE_START = 0x400,
|
|
|
|
PRODUCER_GET_NEXT_OUTPUT,
|
2002-10-04 04:45:20 +04:00
|
|
|
PRODUCER_DISPOSE_OUTPUT_COOKIE,
|
2002-10-03 02:12:10 +04:00
|
|
|
PRODUCER_FORMAT_PROPOSAL,
|
|
|
|
PRODUCER_PREPARE_TO_CONNECT,
|
|
|
|
PRODUCER_CONNECT,
|
2002-10-05 17:02:26 +04:00
|
|
|
PRODUCER_DISCONNECT,
|
2002-10-10 22:55:47 +04:00
|
|
|
|
|
|
|
PRODUCER_LATE_NOTICE_RECEIVED,
|
|
|
|
PRODUCER_LATENCY_CHANGED,
|
|
|
|
PRODUCER_ADDITIONAL_BUFFER_REQUESTED,
|
|
|
|
PRODUCER_VIDEO_CLIPPING_CHANGED,
|
|
|
|
PRODUCER_FORMAT_CHANGE_REQUESTED,
|
|
|
|
PRODUCER_SET_BUFFER_GROUP,
|
|
|
|
PRODUCER_GET_LATENCY,
|
|
|
|
PRODUCER_GET_INITIAL_LATENCY,
|
|
|
|
PRODUCER_FORMAT_SUGGESTION_REQUESTED,
|
|
|
|
PRODUCER_SET_PLAY_RATE,
|
2003-03-23 04:11:33 +03:00
|
|
|
PRODUCER_ENABLE_OUTPUT,
|
|
|
|
PRODUCER_SET_RUN_MODE_DELAY,
|
2002-10-10 22:55:47 +04:00
|
|
|
|
|
|
|
PRODUCER_MESSAGE_END,
|
|
|
|
FILEINTERFACE_MESSAGE_START = 0x500,
|
2008-03-30 05:35:58 +04:00
|
|
|
FILEINTERFACE_SET_REF,
|
|
|
|
FILEINTERFACE_GET_REF,
|
|
|
|
FILEINTERFACE_SNIFF_REF,
|
2002-10-10 22:55:47 +04:00
|
|
|
FILEINTERFACE_MESSAGE_END,
|
|
|
|
CONTROLLABLE_MESSAGE_START = 0x600,
|
2003-04-23 03:06:51 +04:00
|
|
|
CONTROLLABLE_GET_PARAMETER_WEB,
|
2003-06-13 04:43:53 +04:00
|
|
|
CONTROLLABLE_GET_PARAMETER_DATA,
|
|
|
|
CONTROLLABLE_SET_PARAMETER_DATA,
|
2008-03-29 23:53:01 +03:00
|
|
|
CONTROLLABLE_START_CONTROL_PANEL,
|
2008-03-31 22:14:43 +04:00
|
|
|
CONTROLLABLE_MESSAGE_END,
|
2003-01-20 04:11:15 +03:00
|
|
|
TIMESOURCE_MESSAGE_START = 0x700,
|
2002-10-10 22:55:47 +04:00
|
|
|
|
|
|
|
TIMESOURCE_OP, // datablock is a struct time_source_op_info
|
2003-01-20 04:11:15 +03:00
|
|
|
TIMESOURCE_ADD_SLAVE_NODE,
|
|
|
|
TIMESOURCE_REMOVE_SLAVE_NODE,
|
2003-12-08 11:39:20 +03:00
|
|
|
TIMESOURCE_GET_START_LATENCY,
|
2002-10-10 22:55:47 +04:00
|
|
|
|
2003-01-20 04:11:15 +03:00
|
|
|
TIMESOURCE_MESSAGE_END,
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
|
|
|
|
/* We can't send an entry_ref through a port to another team,
|
|
|
|
* but we can assign it to an xfer_entry_ref and send this one,
|
|
|
|
* when we receive it we can assign it to a normal entry_ref
|
|
|
|
*/
|
|
|
|
struct xfer_entry_ref
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
xfer_entry_ref()
|
|
|
|
{
|
|
|
|
device = -1;
|
|
|
|
directory = -1;
|
|
|
|
name[0] = 0;
|
|
|
|
}
|
|
|
|
operator entry_ref() const
|
|
|
|
{
|
|
|
|
entry_ref ref(device, directory, name);
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
void operator=(const entry_ref &ref)
|
|
|
|
{
|
|
|
|
device = ref.device;
|
|
|
|
directory = ref.directory;
|
2003-11-12 12:36:48 +03:00
|
|
|
if(ref.name)
|
|
|
|
strcpy(name, ref.name);
|
2003-11-25 13:09:36 +03:00
|
|
|
else
|
|
|
|
name[0] = 0;
|
2002-11-03 19:03:23 +03:00
|
|
|
}
|
|
|
|
private:
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
2003-12-14 22:23:16 +03:00
|
|
|
char name[B_FILE_NAME_LENGTH]; // == 256 bytes
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2002-10-03 02:12:10 +04:00
|
|
|
// used by SERVER_GET_NODE and SERVER_SET_NODE
|
|
|
|
enum node_type
|
|
|
|
{
|
|
|
|
VIDEO_INPUT,
|
|
|
|
AUDIO_INPUT,
|
|
|
|
VIDEO_OUTPUT,
|
|
|
|
AUDIO_MIXER,
|
|
|
|
AUDIO_OUTPUT,
|
|
|
|
AUDIO_OUTPUT_EX,
|
|
|
|
TIME_SOURCE,
|
|
|
|
SYSTEM_TIME_SOURCE
|
|
|
|
};
|
|
|
|
|
2002-10-04 04:45:20 +04:00
|
|
|
// used by SERVER_PUBLISH_INPUTS and SERVER_PUBLISH_OUTPUTS
|
|
|
|
enum
|
|
|
|
{
|
2003-03-22 04:11:07 +03:00
|
|
|
MAX_OUTPUTS = 8,
|
|
|
|
MAX_INPUTS = 8,
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
2002-10-03 02:12:10 +04:00
|
|
|
|
2002-10-05 17:02:26 +04:00
|
|
|
// used by SERVER_GET_LIVE_NODES
|
|
|
|
enum
|
|
|
|
{
|
2003-03-22 04:11:07 +03:00
|
|
|
MAX_LIVE_INFO = 16,
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2002-10-05 23:45:50 +04:00
|
|
|
// used by SERVER_GET_INSTANCES_FOR
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAX_NODE_ID = 4000,
|
|
|
|
};
|
|
|
|
|
2003-12-14 22:23:16 +03:00
|
|
|
// used by SERVER_GET_READERS
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
MAX_READERS = 40,
|
|
|
|
};
|
|
|
|
|
2002-10-03 02:12:10 +04:00
|
|
|
struct addonserver_instantiate_dormant_node_request : public request_data
|
2002-10-02 05:04:48 +04:00
|
|
|
{
|
2003-03-14 17:04:59 +03:00
|
|
|
media_addon_id addonid;
|
|
|
|
int32 flavorid;
|
2003-03-16 06:52:52 +03:00
|
|
|
team_id creator_team;
|
2002-10-02 05:04:48 +04:00
|
|
|
};
|
|
|
|
|
2002-10-03 02:12:10 +04:00
|
|
|
struct addonserver_instantiate_dormant_node_reply : public reply_data
|
2002-10-02 05:04:48 +04:00
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
};
|
|
|
|
|
2002-10-03 02:12:10 +04:00
|
|
|
struct server_set_node_request : public request_data
|
|
|
|
{
|
|
|
|
node_type type;
|
|
|
|
bool use_node;
|
|
|
|
media_node node;
|
|
|
|
bool use_dni;
|
|
|
|
dormant_node_info dni;
|
|
|
|
bool use_input;
|
|
|
|
media_input input;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_set_node_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_node_request : public request_data
|
|
|
|
{
|
|
|
|
node_type type;
|
2002-10-05 17:02:26 +04:00
|
|
|
team_id team;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_node_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
|
|
|
|
// for AUDIO_OUTPUT_EX
|
|
|
|
char input_name[B_MEDIA_NAME_LENGTH];
|
|
|
|
int32 input_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_format_proposal_request : public request_data
|
|
|
|
{
|
|
|
|
media_source output;
|
|
|
|
media_format format;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_format_proposal_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_format format;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_prepare_to_connect_request : public request_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
media_format format;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_prepare_to_connect_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_format format;
|
|
|
|
media_source out_source;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_connect_request : public request_data
|
|
|
|
{
|
|
|
|
status_t error;
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
media_format format;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_connect_reply : public reply_data
|
|
|
|
{
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
|
|
|
struct producer_disconnect_request : public request_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_disconnect_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_format_suggestion_requested_request : public request_data
|
|
|
|
{
|
|
|
|
media_type type;
|
|
|
|
int32 quality;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_format_suggestion_requested_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_format format;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_set_play_rate_request : public request_data
|
|
|
|
{
|
|
|
|
int32 numer;
|
|
|
|
int32 denom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_set_play_rate_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_get_initial_latency_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_get_initial_latency_reply : public reply_data
|
|
|
|
{
|
|
|
|
bigtime_t initial_latency;
|
|
|
|
uint32 flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_get_latency_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_get_latency_reply : public reply_data
|
|
|
|
{
|
|
|
|
bigtime_t latency;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_set_buffer_group_command : public command_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
void *user_data;
|
|
|
|
int32 change_tag;
|
|
|
|
int32 buffer_count;
|
|
|
|
media_buffer_id buffers[1];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_format_change_requested_command : public command_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
media_format format;
|
|
|
|
void *user_data;
|
|
|
|
int32 change_tag;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_video_clipping_changed_command : public command_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
media_video_display_info display;
|
|
|
|
void *user_data;
|
|
|
|
int32 change_tag;
|
|
|
|
int32 short_count;
|
|
|
|
int16 shorts[1];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_additional_buffer_requested_command : public command_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_buffer_id prev_buffer;
|
|
|
|
bigtime_t prev_time;
|
|
|
|
bool has_seek_tag;
|
|
|
|
media_seek_tag prev_tag;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_latency_changed_command : public command_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
bigtime_t latency;
|
|
|
|
uint32 flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_enable_output_command : public command_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
bool enabled;
|
|
|
|
void *user_data;
|
|
|
|
int32 change_tag;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_late_notice_received_command : public command_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
bigtime_t how_much;
|
|
|
|
bigtime_t performance_time;
|
|
|
|
};
|
|
|
|
|
2003-03-23 04:11:33 +03:00
|
|
|
struct producer_set_run_mode_delay_command : public command_data
|
|
|
|
{
|
|
|
|
BMediaNode::run_mode mode;
|
|
|
|
bigtime_t delay;
|
|
|
|
};
|
|
|
|
|
2002-10-03 02:12:10 +04:00
|
|
|
struct consumer_accept_format_request : public request_data
|
|
|
|
{
|
|
|
|
media_destination dest;
|
|
|
|
media_format format;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_accept_format_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_format format;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_connected_request : public request_data
|
|
|
|
{
|
2003-06-03 23:01:53 +04:00
|
|
|
media_input input;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_connected_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_input input;
|
|
|
|
};
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2002-10-04 04:45:20 +04:00
|
|
|
struct server_publish_inputs_request : public request_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
int32 count;
|
2002-10-05 17:02:26 +04:00
|
|
|
area_id area; // if count > MAX_INPUTS, inputs are in the area
|
2002-10-09 03:59:43 +04:00
|
|
|
// area is created in the library, and also deleted
|
|
|
|
// in the library after the reply has been received
|
2002-10-04 04:45:20 +04:00
|
|
|
media_input inputs[MAX_INPUTS];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_publish_inputs_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_publish_outputs_request : public request_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
int32 count;
|
|
|
|
area_id area; // if count > MAX_OUTPUTS, outputs are in the area
|
2002-10-09 03:59:43 +04:00
|
|
|
// area is created in the library, and also deleted
|
|
|
|
// in the library after the reply has been received
|
2002-10-04 04:45:20 +04:00
|
|
|
media_output outputs[MAX_OUTPUTS];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_publish_outputs_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_get_next_output_request : public request_data
|
|
|
|
{
|
|
|
|
int32 cookie;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_get_next_output_reply : public reply_data
|
|
|
|
{
|
|
|
|
int32 cookie;
|
|
|
|
media_output output;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_dispose_output_cookie_request : public request_data
|
|
|
|
{
|
|
|
|
int32 cookie;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct producer_dispose_output_cookie_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_get_next_input_request : public request_data
|
|
|
|
{
|
|
|
|
int32 cookie;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_get_next_input_reply : public reply_data
|
|
|
|
{
|
|
|
|
int32 cookie;
|
|
|
|
media_input input;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_dispose_input_cookie_request : public request_data
|
|
|
|
{
|
|
|
|
int32 cookie;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_dispose_input_cookie_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2002-10-05 17:02:26 +04:00
|
|
|
struct consumer_disconnected_request : public request_data
|
|
|
|
{
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_disconnected_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
struct consumer_buffer_received_command : public command_data
|
|
|
|
{
|
|
|
|
media_buffer_id buffer;
|
|
|
|
media_header header;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_producer_data_status_command : public command_data
|
|
|
|
{
|
|
|
|
media_destination for_whom;
|
|
|
|
int32 status;
|
|
|
|
bigtime_t at_performance_time;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_get_latency_for_request : public request_data
|
|
|
|
{
|
|
|
|
media_destination for_whom;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_get_latency_for_reply : public reply_data
|
|
|
|
{
|
|
|
|
bigtime_t latency;
|
|
|
|
media_node_id timesource;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_format_changed_request : public request_data
|
|
|
|
{
|
|
|
|
media_source producer;
|
|
|
|
media_destination consumer;
|
|
|
|
int32 change_tag;
|
|
|
|
media_format format;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_format_changed_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct consumer_seek_tag_requested_request : public request_data
|
2002-10-05 17:02:26 +04:00
|
|
|
{
|
|
|
|
media_destination destination;
|
2002-11-03 19:03:23 +03:00
|
|
|
bigtime_t target_time;
|
|
|
|
uint32 flags;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
struct consumer_seek_tag_requested_reply : public reply_data
|
2002-10-05 17:02:26 +04:00
|
|
|
{
|
2002-11-03 19:03:23 +03:00
|
|
|
media_seek_tag seek_tag;
|
|
|
|
bigtime_t tagged_time;
|
|
|
|
uint32 flags;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2002-11-20 04:28:23 +03:00
|
|
|
struct server_register_app_request : public request_data
|
|
|
|
{
|
|
|
|
team_id team;
|
|
|
|
BMessenger messenger;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-11-20 04:28:23 +03:00
|
|
|
struct server_register_app_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-11-20 04:28:23 +03:00
|
|
|
struct server_unregister_app_request : public request_data
|
|
|
|
{
|
|
|
|
team_id team;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-11-20 04:28:23 +03:00
|
|
|
struct server_unregister_app_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2003-03-16 06:52:52 +03:00
|
|
|
struct server_set_node_creator_request : public request_data
|
|
|
|
{
|
|
|
|
media_node_id node;
|
|
|
|
team_id creator;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2003-03-16 06:52:52 +03:00
|
|
|
struct server_set_node_creator_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2003-03-22 04:11:07 +03:00
|
|
|
struct server_change_addon_flavor_instances_count_request : public request_data
|
2003-03-16 06:52:52 +03:00
|
|
|
{
|
2003-03-22 04:11:07 +03:00
|
|
|
media_addon_id addonid;
|
|
|
|
int32 flavorid;
|
|
|
|
int32 delta; // must be +1 or -1
|
|
|
|
team_id team;
|
2003-03-16 06:52:52 +03:00
|
|
|
};
|
|
|
|
|
2003-03-22 04:11:07 +03:00
|
|
|
struct server_change_addon_flavor_instances_count_reply : public reply_data
|
2003-03-16 06:52:52 +03:00
|
|
|
{
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-10-05 17:02:26 +04:00
|
|
|
struct server_register_node_request : public request_data
|
|
|
|
{
|
|
|
|
media_addon_id addon_id;
|
|
|
|
int32 addon_flavor_id;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
|
|
|
uint64 kinds;
|
|
|
|
port_id port;
|
|
|
|
team_id team;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_register_node_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_node_id nodeid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_unregister_node_request : public request_data
|
|
|
|
{
|
|
|
|
media_node_id nodeid;
|
|
|
|
team_id team;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_unregister_node_reply : public reply_data
|
|
|
|
{
|
2003-03-16 06:52:52 +03:00
|
|
|
media_addon_id addonid;
|
|
|
|
int32 flavorid;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_live_node_info_request : public request_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_live_node_info_reply : public reply_data
|
|
|
|
{
|
|
|
|
live_node_info live_info;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_live_nodes_request : public request_data
|
|
|
|
{
|
|
|
|
int32 maxcount;
|
|
|
|
bool has_input;
|
|
|
|
bool has_output;
|
|
|
|
bool has_name;
|
|
|
|
media_format inputformat;
|
|
|
|
media_format outputformat;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH + 1]; // 1 for a trailing "*"
|
|
|
|
uint64 require_kinds;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_live_nodes_reply : public reply_data
|
|
|
|
{
|
|
|
|
int32 count;
|
|
|
|
area_id area; // if count > MAX_LIVE_INFO, live_node_infos are in the area
|
2002-10-09 03:59:43 +04:00
|
|
|
// area is created in the server, but deleted in the library
|
2002-10-05 17:02:26 +04:00
|
|
|
live_node_info live_info[MAX_LIVE_INFO];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_node_id_for_request : public request_data
|
|
|
|
{
|
|
|
|
port_id port;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_node_id_for_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_node_id nodeid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_node_for_request : public request_data
|
|
|
|
{
|
|
|
|
media_node_id nodeid;
|
|
|
|
team_id team;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_node_for_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_node clone;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_release_node_request : public request_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
team_id team;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_release_node_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2002-10-05 23:45:50 +04:00
|
|
|
struct server_get_dormant_node_for_request : public request_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_dormant_node_for_reply : public reply_data
|
|
|
|
{
|
|
|
|
dormant_node_info node_info;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_instances_for_request : public request_data
|
|
|
|
{
|
|
|
|
int32 maxcount;
|
|
|
|
media_addon_id addon_id;
|
|
|
|
int32 addon_flavor_id;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_instances_for_reply : public reply_data
|
|
|
|
{
|
|
|
|
int32 count;
|
|
|
|
media_node_id node_id[MAX_NODE_ID]; // no area here, MAX_NODE_ID is really large
|
|
|
|
};
|
|
|
|
|
2002-12-26 05:23:59 +03:00
|
|
|
struct server_rescan_defaults_command : public command_data
|
|
|
|
{
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
|
|
|
struct addonserver_rescan_mediaaddon_flavors_command : public command_data
|
|
|
|
{
|
|
|
|
media_addon_id addonid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_register_mediaaddon_request : public request_data
|
|
|
|
{
|
|
|
|
xfer_entry_ref ref; // a ref to the file
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_register_mediaaddon_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_addon_id addonid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_unregister_mediaaddon_command : public command_data
|
|
|
|
{
|
|
|
|
media_addon_id addonid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_mediaaddon_ref_request : public request_data
|
|
|
|
{
|
|
|
|
media_addon_id addonid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_mediaaddon_ref_reply : public reply_data
|
|
|
|
{
|
|
|
|
xfer_entry_ref ref; // a ref to the file
|
|
|
|
};
|
|
|
|
|
2002-12-09 02:49:40 +03:00
|
|
|
struct server_get_shared_buffer_area_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-12-09 02:49:40 +03:00
|
|
|
struct server_get_shared_buffer_area_reply : public reply_data
|
|
|
|
{
|
|
|
|
area_id area;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-12-09 02:49:40 +03:00
|
|
|
struct server_register_buffer_request : public request_data
|
|
|
|
{
|
|
|
|
team_id team;
|
|
|
|
//either info.buffer is != 0, or the area, size, offset is used
|
|
|
|
buffer_clone_info info;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-12-09 02:49:40 +03:00
|
|
|
struct server_register_buffer_reply : public reply_data
|
|
|
|
{
|
|
|
|
buffer_clone_info info;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2002-12-09 02:49:40 +03:00
|
|
|
struct server_unregister_buffer_command : public command_data
|
|
|
|
{
|
|
|
|
team_id team;
|
|
|
|
media_buffer_id bufferid;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2003-11-12 12:36:48 +03:00
|
|
|
struct server_rewindtypes_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_rewindtypes_reply : public reply_data
|
|
|
|
{
|
|
|
|
int32 count;
|
|
|
|
area_id area;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_rewindrefs_request : public request_data
|
|
|
|
{
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_rewindrefs_reply : public reply_data
|
|
|
|
{
|
|
|
|
int32 count;
|
|
|
|
area_id area;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_getreffor_request : public request_data
|
|
|
|
{
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_getreffor_reply : public reply_data
|
|
|
|
{
|
|
|
|
xfer_entry_ref ref; // a ref to the file
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_setreffor_request : public request_data
|
|
|
|
{
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
|
|
|
xfer_entry_ref ref; // a ref to the file
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_setreffor_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_removereffor_request : public request_data
|
|
|
|
{
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
|
|
|
xfer_entry_ref ref; // a ref to the file
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_removereffor_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_removeitem_request : public request_data
|
|
|
|
{
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_removeitem_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2003-12-14 22:23:16 +03:00
|
|
|
struct server_get_decoder_for_format_request : public request_data
|
|
|
|
{
|
|
|
|
media_format format;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_decoder_for_format_reply : public reply_data
|
|
|
|
{
|
|
|
|
xfer_entry_ref ref; // a ref to the decoder
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_readers_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct server_get_readers_reply : public reply_data
|
|
|
|
{
|
|
|
|
xfer_entry_ref ref[MAX_READERS]; // a list of refs to the reader
|
|
|
|
int32 count;
|
|
|
|
};
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
struct node_request_completed_command : public command_data
|
|
|
|
{
|
|
|
|
media_request_info info;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct node_start_command : public command_data
|
|
|
|
{
|
|
|
|
bigtime_t performance_time;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct node_stop_command : public command_data
|
|
|
|
{
|
|
|
|
bigtime_t performance_time;
|
|
|
|
bool immediate;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct node_seek_command : public command_data
|
|
|
|
{
|
|
|
|
bigtime_t media_time;
|
|
|
|
bigtime_t performance_time;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct node_set_run_mode_command : public command_data
|
|
|
|
{
|
|
|
|
BMediaNode::run_mode mode;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct node_time_warp_command : public command_data
|
|
|
|
{
|
|
|
|
bigtime_t at_real_time;
|
|
|
|
bigtime_t to_performance_time;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct node_set_timesource_command : public command_data
|
|
|
|
{
|
|
|
|
media_node_id timesource_id;
|
|
|
|
};
|
|
|
|
|
2003-06-01 21:18:24 +04:00
|
|
|
struct node_get_timesource_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct node_get_timesource_reply : public reply_data
|
|
|
|
{
|
|
|
|
media_node_id timesource_id;
|
|
|
|
};
|
|
|
|
|
2003-03-15 02:12:11 +03:00
|
|
|
struct node_final_release_command : public command_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
2003-01-20 04:11:15 +03:00
|
|
|
struct timesource_add_slave_node_command : public command_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2003-01-20 04:11:15 +03:00
|
|
|
struct timesource_remove_slave_node_command : public command_data
|
|
|
|
{
|
|
|
|
media_node node;
|
2003-12-08 11:39:20 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
struct timesource_get_start_latency_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct timesource_get_start_latency_reply : public reply_data
|
|
|
|
{
|
|
|
|
bigtime_t start_latency;
|
2003-01-20 04:11:15 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2008-03-30 05:35:58 +04:00
|
|
|
struct fileinterface_set_ref_request : public request_data
|
|
|
|
{
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
|
|
|
char name[B_FILE_NAME_LENGTH];
|
|
|
|
bigtime_t duration;
|
|
|
|
bool create;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct fileinterface_set_ref_reply : public reply_data
|
|
|
|
{
|
|
|
|
bigtime_t duration;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct fileinterface_get_ref_request : public request_data
|
|
|
|
{
|
|
|
|
};
|
|
|
|
|
|
|
|
struct fileinterface_get_ref_reply : public reply_data
|
|
|
|
{
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
|
|
|
char name[B_FILE_NAME_LENGTH];
|
|
|
|
char mimetype[256];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct fileinterface_sniff_ref_request : public request_data
|
|
|
|
{
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
|
|
|
char name[B_FILE_NAME_LENGTH];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct fileinterface_sniff_ref_reply : public reply_data
|
|
|
|
{
|
|
|
|
char mimetype[256];
|
|
|
|
float capability;
|
|
|
|
};
|
|
|
|
|
2003-04-23 03:06:51 +04:00
|
|
|
struct controllable_get_parameter_web_request : public request_data
|
|
|
|
{
|
|
|
|
area_id area;
|
|
|
|
int32 maxsize;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct controllable_get_parameter_web_reply : public reply_data
|
|
|
|
{
|
|
|
|
type_code code;
|
|
|
|
int32 size; // = -1: parameter web data too large, = 0: no p.w., > 0: flattened p.w. data
|
|
|
|
};
|
|
|
|
|
2003-06-13 04:43:53 +04:00
|
|
|
#define MAX_PARAMETER_DATA (B_MEDIA_MESSAGE_SIZE - 100)
|
|
|
|
|
|
|
|
struct controllable_get_parameter_data_request : public request_data
|
|
|
|
{
|
|
|
|
int32 parameter_id;
|
|
|
|
size_t requestsize;
|
2003-06-13 16:43:52 +04:00
|
|
|
area_id area; //if area != -1, data is too large and must be passed in the area
|
2003-06-13 04:43:53 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
struct controllable_get_parameter_data_reply : public reply_data
|
|
|
|
{
|
|
|
|
bigtime_t last_change;
|
|
|
|
char rawdata[MAX_PARAMETER_DATA];
|
|
|
|
size_t size;
|
|
|
|
};
|
|
|
|
|
2003-06-13 16:43:52 +04:00
|
|
|
struct controllable_set_parameter_data_request : public request_data
|
|
|
|
{
|
|
|
|
int32 parameter_id;
|
|
|
|
bigtime_t when;
|
|
|
|
area_id area; //if area != -1, data is too large and is passed in the area
|
|
|
|
size_t size;
|
|
|
|
char rawdata[MAX_PARAMETER_DATA];
|
|
|
|
};
|
|
|
|
|
|
|
|
struct controllable_set_parameter_data_reply : public reply_data
|
|
|
|
{
|
|
|
|
};
|
2003-06-13 04:43:53 +04:00
|
|
|
|
2008-03-29 23:53:01 +03:00
|
|
|
struct controllable_start_control_panel_request : public request_data
|
|
|
|
{
|
|
|
|
media_node node;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct controllable_start_control_panel_reply : public reply_data
|
|
|
|
{
|
|
|
|
team_id team;
|
|
|
|
};
|
|
|
|
|
2002-10-02 05:04:48 +04:00
|
|
|
#endif // _DATA_EXCHANGE_H
|