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
|
|
|
|
|
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>
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
|
2002-10-02 05:04:48 +04:00
|
|
|
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);
|
2009-04-09 01:17:03 +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);
|
2009-04-09 01:17:03 +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
|
2009-04-09 01:17:03 +04:00
|
|
|
status_t SendToPort(port_id sendport, int32 msgcode, command_data *msg,
|
|
|
|
int size);
|
|
|
|
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
|
2009-04-09 01:17:03 +04:00
|
|
|
struct request_data {
|
|
|
|
port_id reply_port;
|
2002-10-02 05:04:48 +04:00
|
|
|
|
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
|
2009-04-09 01:17:03 +04:00
|
|
|
struct reply_data {
|
|
|
|
status_t result;
|
2002-10-02 05:04:48 +04:00
|
|
|
};
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
// The base struct used for all raw commands (asynchronous, no answer)
|
2009-04-09 01:17:03 +04:00
|
|
|
struct command_data {
|
2002-11-03 19:03:23 +03:00
|
|
|
// yes, it's empty ;)
|
|
|
|
};
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
// The base struct used for all requests using an area
|
|
|
|
struct area_request_data : request_data {
|
|
|
|
area_id area;
|
|
|
|
};
|
|
|
|
|
|
|
|
// The base struct used for all replies using an area
|
|
|
|
struct area_reply_data : reply_data {
|
|
|
|
area_id area;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dataexchange
|
|
|
|
} // namespace media
|
|
|
|
} // namespace BPrivate
|
2002-10-02 05:04:48 +04:00
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
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
|
|
|
|
*/
|
2009-04-09 01:17:03 +04:00
|
|
|
struct xfer_entry_ref {
|
2002-11-03 19:03:23 +03:00
|
|
|
public:
|
|
|
|
xfer_entry_ref()
|
2009-04-09 01:17:03 +04:00
|
|
|
{
|
|
|
|
device = -1;
|
|
|
|
directory = -1;
|
|
|
|
name[0] = 0;
|
|
|
|
}
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
operator entry_ref() const
|
2009-04-09 01:17:03 +04:00
|
|
|
{
|
|
|
|
entry_ref ref(device, directory, name);
|
|
|
|
return ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
xfer_entry_ref& operator=(const entry_ref& ref)
|
|
|
|
{
|
|
|
|
device = ref.device;
|
|
|
|
directory = ref.directory;
|
|
|
|
if (ref.name)
|
|
|
|
strcpy(name, ref.name);
|
|
|
|
else
|
|
|
|
name[0] = 0;
|
|
|
|
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
2002-11-03 19:03:23 +03:00
|
|
|
private:
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
2009-04-09 01:17:03 +04:00
|
|
|
char name[B_FILE_NAME_LENGTH];
|
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
|
2009-04-09 01:17:03 +04:00
|
|
|
enum node_type {
|
2002-10-03 02:12:10 +04:00
|
|
|
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
|
2009-04-09 01:17:03 +04:00
|
|
|
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
|
2009-04-09 01:17:03 +04:00
|
|
|
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
|
2009-04-09 01:17:03 +04:00
|
|
|
enum {
|
2002-10-05 23:45:50 +04:00
|
|
|
MAX_NODE_ID = 4000,
|
|
|
|
};
|
|
|
|
|
2003-12-14 22:23:16 +03:00
|
|
|
// used by SERVER_GET_READERS
|
2009-04-09 01:17:03 +04:00
|
|
|
enum {
|
2003-12-14 22:23:16 +03:00
|
|
|
MAX_READERS = 40,
|
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct addonserver_instantiate_dormant_node_request : request_data {
|
|
|
|
media_addon_id addonid;
|
|
|
|
int32 flavorid;
|
|
|
|
team_id creator_team;
|
2002-10-02 05:04:48 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct addonserver_instantiate_dormant_node_reply : reply_data {
|
|
|
|
media_node node;
|
2002-10-02 05:04:48 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_set_node_request : request_data {
|
|
|
|
node_type type;
|
|
|
|
bool use_node;
|
|
|
|
media_node node;
|
|
|
|
bool use_dni;
|
|
|
|
dormant_node_info dni;
|
|
|
|
bool use_input;
|
|
|
|
media_input input;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_set_node_reply : reply_data {
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_node_request : request_data {
|
|
|
|
node_type type;
|
|
|
|
team_id team;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_node_reply : public reply_data {
|
|
|
|
media_node node;
|
2002-10-03 02:12:10 +04:00
|
|
|
|
|
|
|
// for AUDIO_OUTPUT_EX
|
2009-04-09 01:17:03 +04:00
|
|
|
char input_name[B_MEDIA_NAME_LENGTH];
|
|
|
|
int32 input_id;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_format_proposal_request : public request_data {
|
|
|
|
media_source output;
|
|
|
|
media_format format;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_format_proposal_reply : reply_data {
|
|
|
|
media_format format;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_prepare_to_connect_request : request_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
media_format format;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_prepare_to_connect_reply : reply_data {
|
|
|
|
media_format format;
|
|
|
|
media_source out_source;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_connect_request : request_data {
|
|
|
|
status_t error;
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
media_format format;
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_connect_reply : reply_data {
|
|
|
|
char name[B_MEDIA_NAME_LENGTH];
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_disconnect_request : request_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_disconnect_reply : reply_data {
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_format_suggestion_requested_request : request_data {
|
|
|
|
media_type type;
|
|
|
|
int32 quality;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_format_suggestion_requested_reply : reply_data {
|
|
|
|
media_format format;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_set_play_rate_request : request_data {
|
|
|
|
int32 numer;
|
|
|
|
int32 denom;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_set_play_rate_reply : reply_data {
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_get_initial_latency_request : request_data {
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_get_initial_latency_reply : reply_data {
|
|
|
|
bigtime_t initial_latency;
|
|
|
|
uint32 flags;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_get_latency_request : request_data {
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_get_latency_reply : reply_data {
|
|
|
|
bigtime_t latency;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_set_buffer_group_command : command_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
void* user_data;
|
|
|
|
int32 change_tag;
|
|
|
|
int32 buffer_count;
|
|
|
|
media_buffer_id buffers[1];
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_format_change_requested_command : command_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
media_format format;
|
|
|
|
void* user_data;
|
|
|
|
int32 change_tag;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_video_clipping_changed_command : command_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
2002-11-03 19:03:23 +03:00
|
|
|
media_video_display_info display;
|
2009-04-09 01:17:03 +04:00
|
|
|
void* user_data;
|
|
|
|
int32 change_tag;
|
|
|
|
int32 short_count;
|
|
|
|
int16 shorts[1];
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_additional_buffer_requested_command : command_data {
|
|
|
|
media_source source;
|
|
|
|
media_buffer_id prev_buffer;
|
|
|
|
bigtime_t prev_time;
|
|
|
|
bool has_seek_tag;
|
|
|
|
media_seek_tag prev_tag;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_latency_changed_command : command_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
bigtime_t latency;
|
|
|
|
uint32 flags;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_enable_output_command : command_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
|
|
|
bool enabled;
|
|
|
|
void* user_data;
|
|
|
|
int32 change_tag;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_late_notice_received_command : command_data {
|
|
|
|
media_source source;
|
|
|
|
bigtime_t how_much;
|
|
|
|
bigtime_t performance_time;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_set_run_mode_delay_command : command_data {
|
|
|
|
BMediaNode::run_mode mode;
|
|
|
|
bigtime_t delay;
|
2003-03-23 04:11:33 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_accept_format_request : request_data {
|
|
|
|
media_destination dest;
|
|
|
|
media_format format;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_accept_format_reply : reply_data {
|
|
|
|
media_format format;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_connected_request : request_data {
|
|
|
|
media_input input;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_connected_reply : reply_data {
|
|
|
|
media_input input;
|
2002-10-03 02:12:10 +04:00
|
|
|
};
|
2002-10-02 05:04:48 +04:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_publish_inputs_request : 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];
|
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_publish_inputs_reply : reply_data {
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_publish_outputs_request : area_request_data {
|
|
|
|
media_node node;
|
|
|
|
int32 count;
|
|
|
|
// if count > MAX_OUTPUTS, outputs are in the area
|
|
|
|
// 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];
|
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_publish_outputs_reply : reply_data {
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_get_next_output_request : request_data {
|
|
|
|
int32 cookie;
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_get_next_output_reply : reply_data
|
2002-10-04 04:45:20 +04:00
|
|
|
{
|
2009-04-09 01:17:03 +04:00
|
|
|
int32 cookie;
|
|
|
|
media_output output;
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_dispose_output_cookie_request : request_data
|
2002-10-04 04:45:20 +04:00
|
|
|
{
|
2009-04-09 01:17:03 +04:00
|
|
|
int32 cookie;
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct producer_dispose_output_cookie_reply : reply_data {
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_get_next_input_request : request_data {
|
|
|
|
int32 cookie;
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_get_next_input_reply : reply_data {
|
|
|
|
int32 cookie;
|
|
|
|
media_input input;
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_dispose_input_cookie_request : request_data {
|
|
|
|
int32 cookie;
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_dispose_input_cookie_reply : reply_data {
|
2002-10-04 04:45:20 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_disconnected_request : request_data {
|
|
|
|
media_source source;
|
|
|
|
media_destination destination;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_disconnected_reply : reply_data {
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_buffer_received_command : command_data {
|
|
|
|
media_buffer_id buffer;
|
|
|
|
media_header header;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_producer_data_status_command : command_data {
|
|
|
|
media_destination for_whom;
|
|
|
|
int32 status;
|
|
|
|
bigtime_t at_performance_time;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_get_latency_for_request : request_data {
|
|
|
|
media_destination for_whom;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_get_latency_for_reply : reply_data {
|
|
|
|
bigtime_t latency;
|
|
|
|
media_node_id timesource;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_format_changed_request : request_data {
|
|
|
|
media_source producer;
|
|
|
|
media_destination consumer;
|
|
|
|
int32 change_tag;
|
|
|
|
media_format format;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_format_changed_reply : reply_data {
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_seek_tag_requested_request : request_data {
|
|
|
|
media_destination destination;
|
|
|
|
bigtime_t target_time;
|
|
|
|
uint32 flags;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct consumer_seek_tag_requested_reply : reply_data {
|
|
|
|
media_seek_tag seek_tag;
|
|
|
|
bigtime_t tagged_time;
|
|
|
|
uint32 flags;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_app_request : request_data {
|
|
|
|
team_id team;
|
|
|
|
BMessenger messenger;
|
2002-11-20 04:28:23 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_app_reply : reply_data {
|
2002-11-20 04:28:23 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_unregister_app_request : request_data {
|
|
|
|
team_id team;
|
2002-11-20 04:28:23 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_unregister_app_reply : reply_data {
|
2002-11-20 04:28:23 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_set_node_creator_request : request_data {
|
|
|
|
media_node_id node;
|
|
|
|
team_id creator;
|
2003-03-16 06:52:52 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_set_node_creator_reply : reply_data {
|
2003-03-16 06:52:52 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_change_addon_flavor_instances_count_request : request_data {
|
|
|
|
media_addon_id addonid;
|
|
|
|
int32 flavorid;
|
|
|
|
int32 delta; // must be +1 or -1
|
|
|
|
team_id team;
|
2003-03-16 06:52:52 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_change_addon_flavor_instances_count_reply : reply_data {
|
2003-03-16 06:52:52 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_node_request : 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;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_node_reply : reply_data {
|
|
|
|
media_node_id nodeid;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_unregister_node_request : request_data {
|
|
|
|
media_node_id nodeid;
|
|
|
|
team_id team;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_unregister_node_reply : reply_data {
|
|
|
|
media_addon_id addonid;
|
|
|
|
int32 flavorid;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_live_node_info_request : request_data {
|
|
|
|
media_node node;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_live_node_info_reply : reply_data {
|
|
|
|
live_node_info live_info;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_live_nodes_request : 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;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_live_nodes_reply : area_reply_data {
|
|
|
|
int32 count;
|
|
|
|
// if count > MAX_LIVE_INFO, live_node_infos are in the area
|
|
|
|
// area is created in the server, but deleted in the library
|
|
|
|
live_node_info live_info[MAX_LIVE_INFO];
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_node_id_for_request : request_data {
|
|
|
|
port_id port;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_node_id_for_reply : reply_data {
|
|
|
|
media_node_id nodeid;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_node_for_request : request_data {
|
|
|
|
media_node_id nodeid;
|
|
|
|
team_id team;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_node_for_reply : reply_data {
|
|
|
|
media_node clone;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_release_node_request : request_data {
|
|
|
|
media_node node;
|
|
|
|
team_id team;
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_release_node_reply : reply_data {
|
2002-10-05 17:02:26 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_dormant_node_for_request : request_data {
|
|
|
|
media_node node;
|
2002-10-05 23:45:50 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_dormant_node_for_reply : reply_data {
|
|
|
|
dormant_node_info node_info;
|
2002-10-05 23:45:50 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_instances_for_request : request_data {
|
|
|
|
int32 maxcount;
|
|
|
|
media_addon_id addon_id;
|
|
|
|
int32 addon_flavor_id;
|
2002-10-05 23:45:50 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_instances_for_reply : reply_data {
|
|
|
|
int32 count;
|
|
|
|
media_node_id node_id[MAX_NODE_ID];
|
|
|
|
// no area here, MAX_NODE_ID is really large
|
2002-10-05 23:45:50 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_rescan_defaults_command : command_data {
|
2002-12-26 05:23:59 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct addonserver_rescan_mediaaddon_flavors_command : command_data {
|
|
|
|
media_addon_id addonid;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_mediaaddon_request : request_data {
|
|
|
|
xfer_entry_ref ref;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_mediaaddon_reply : reply_data {
|
|
|
|
media_addon_id addonid;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_unregister_mediaaddon_command : command_data {
|
|
|
|
media_addon_id addonid;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_mediaaddon_ref_request : request_data {
|
|
|
|
media_addon_id addonid;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_mediaaddon_ref_reply : reply_data {
|
|
|
|
xfer_entry_ref ref;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_shared_buffer_area_request : request_data {
|
2002-12-09 02:49:40 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_shared_buffer_area_reply : area_reply_data {
|
2002-12-09 02:49:40 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_buffer_request : request_data {
|
|
|
|
team_id team;
|
|
|
|
buffer_clone_info info;
|
|
|
|
// either info.buffer is != 0, or the area, size, offset is used
|
2002-12-09 02:49:40 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_register_buffer_reply : reply_data {
|
|
|
|
buffer_clone_info info;
|
2002-12-09 02:49:40 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_unregister_buffer_command : command_data {
|
|
|
|
team_id team;
|
|
|
|
media_buffer_id bufferid;
|
2002-12-09 02:49:40 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_rewindtypes_request : request_data {
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_rewindtypes_reply : area_reply_data {
|
|
|
|
int32 count;
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_rewindrefs_request : request_data {
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_rewindrefs_reply : area_reply_data {
|
|
|
|
int32 count;
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_getreffor_request : request_data {
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_getreffor_reply : reply_data {
|
|
|
|
xfer_entry_ref ref;
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_setreffor_request : request_data {
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
|
|
|
xfer_entry_ref ref;
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_setreffor_reply : reply_data {
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_removereffor_request : request_data {
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
|
|
|
xfer_entry_ref ref;
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_removereffor_reply : reply_data {
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_removeitem_request : request_data {
|
|
|
|
char type[B_MEDIA_NAME_LENGTH];
|
|
|
|
char item[B_MEDIA_NAME_LENGTH];
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_removeitem_reply : reply_data {
|
2003-11-12 12:36:48 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_decoder_for_format_request : request_data {
|
|
|
|
media_format format;
|
2003-12-14 22:23:16 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_decoder_for_format_reply : reply_data {
|
|
|
|
xfer_entry_ref ref;
|
|
|
|
// a ref to the decoder
|
2003-12-14 22:23:16 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_readers_request : request_data {
|
2003-12-14 22:23:16 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct server_get_readers_reply : reply_data {
|
|
|
|
xfer_entry_ref ref[MAX_READERS];
|
|
|
|
// a list of refs to the reader
|
|
|
|
int32 count;
|
2003-12-14 22:23:16 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_request_completed_command : command_data {
|
|
|
|
media_request_info info;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_start_command : command_data {
|
|
|
|
bigtime_t performance_time;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_stop_command : command_data {
|
|
|
|
bigtime_t performance_time;
|
|
|
|
bool immediate;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_seek_command : command_data {
|
|
|
|
bigtime_t media_time;
|
|
|
|
bigtime_t performance_time;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_set_run_mode_command : command_data {
|
|
|
|
BMediaNode::run_mode mode;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_time_warp_command : command_data {
|
|
|
|
bigtime_t at_real_time;
|
|
|
|
bigtime_t to_performance_time;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_set_timesource_command : command_data {
|
|
|
|
media_node_id timesource_id;
|
2002-11-03 19:03:23 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_get_timesource_request : request_data {
|
2003-06-01 21:18:24 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_get_timesource_reply : reply_data {
|
|
|
|
media_node_id timesource_id;
|
2003-06-01 21:18:24 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct node_final_release_command : command_data {
|
2003-03-15 02:12:11 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct timesource_add_slave_node_command : command_data {
|
|
|
|
media_node node;
|
2003-01-20 04:11:15 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct timesource_remove_slave_node_command : command_data {
|
|
|
|
media_node node;
|
2003-12-08 11:39:20 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct timesource_get_start_latency_request : request_data {
|
2003-12-08 11:39:20 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct timesource_get_start_latency_reply : reply_data {
|
|
|
|
bigtime_t start_latency;
|
2003-01-20 04:11:15 +03:00
|
|
|
};
|
2002-11-03 19:03:23 +03:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct fileinterface_set_ref_request : request_data {
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
|
|
|
char name[B_FILE_NAME_LENGTH];
|
|
|
|
bigtime_t duration;
|
|
|
|
bool create;
|
2008-03-30 05:35:58 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct fileinterface_set_ref_reply : reply_data {
|
|
|
|
bigtime_t duration;
|
2008-03-30 05:35:58 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct fileinterface_get_ref_request : request_data {
|
2008-03-30 05:35:58 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct fileinterface_get_ref_reply : reply_data {
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
|
|
|
char name[B_FILE_NAME_LENGTH];
|
|
|
|
char mimetype[B_MIME_TYPE_LENGTH];
|
2008-03-30 05:35:58 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct fileinterface_sniff_ref_request : request_data {
|
|
|
|
dev_t device;
|
|
|
|
ino_t directory;
|
|
|
|
char name[B_FILE_NAME_LENGTH];
|
2008-03-30 05:35:58 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct fileinterface_sniff_ref_reply : reply_data {
|
|
|
|
char mimetype[B_MIME_TYPE_LENGTH];
|
|
|
|
float capability;
|
2008-03-30 05:35:58 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_get_parameter_web_request : area_request_data {
|
|
|
|
int32 max_size;
|
2003-04-23 03:06:51 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_get_parameter_web_reply : reply_data {
|
|
|
|
type_code code;
|
|
|
|
int32 size;
|
|
|
|
// = -1: parameter web data too large,
|
|
|
|
// = 0: no p.w., > 0: flattened p.w. data
|
2003-04-23 03:06:51 +04:00
|
|
|
};
|
|
|
|
|
2003-06-13 04:43:53 +04:00
|
|
|
#define MAX_PARAMETER_DATA (B_MEDIA_MESSAGE_SIZE - 100)
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_get_parameter_data_request : area_request_data {
|
|
|
|
int32 parameter_id;
|
|
|
|
size_t request_size;
|
2003-06-13 04:43:53 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_get_parameter_data_reply : reply_data {
|
|
|
|
bigtime_t last_change;
|
|
|
|
char raw_data[MAX_PARAMETER_DATA];
|
|
|
|
size_t size;
|
2003-06-13 04:43:53 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_set_parameter_data_request : area_request_data {
|
|
|
|
int32 parameter_id;
|
|
|
|
bigtime_t when;
|
|
|
|
size_t size;
|
|
|
|
char raw_data[MAX_PARAMETER_DATA];
|
2003-06-13 16:43:52 +04:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_set_parameter_data_reply : reply_data {
|
2003-06-13 16:43:52 +04:00
|
|
|
};
|
2003-06-13 04:43:53 +04:00
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_start_control_panel_request : request_data {
|
|
|
|
media_node node;
|
2008-03-29 23:53:01 +03:00
|
|
|
};
|
|
|
|
|
2009-04-09 01:17:03 +04:00
|
|
|
struct controllable_start_control_panel_reply : reply_data {
|
|
|
|
team_id team;
|
2008-03-29 23:53:01 +03:00
|
|
|
};
|
|
|
|
|
2002-10-02 05:04:48 +04:00
|
|
|
#endif // _DATA_EXCHANGE_H
|