* Implemented BMediaRoster hooks GetRefFor, SetRefFor, SniffRefFor to access BFileInterface related file functions.

* Implemented BFileInterface class which was nearly empty so far. Added handling of messages passed to BFileInterface class.
* Added needed structs and message values to DataExchange.
* This is needed to get for instance the reader.media_addon to work. Usually one calls above functions to set a file to be decoded by the node. If the target is a consumer, they are used for setting the target for encoding data.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24671 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Maurice Kalinowski
2008-03-30 01:35:58 +00:00
parent ae824ff9c8
commit 6938364b39
3 changed files with 179 additions and 16 deletions
+42
View File
@@ -171,6 +171,9 @@ enum {
PRODUCER_MESSAGE_END,
FILEINTERFACE_MESSAGE_START = 0x500,
FILEINTERFACE_SET_REF,
FILEINTERFACE_GET_REF,
FILEINTERFACE_SNIFF_REF,
FILEINTERFACE_MESSAGE_END,
CONTROLLABLE_MESSAGE_START = 0x600,
CONTROLLABLE_GET_PARAMETER_WEB,
@@ -979,6 +982,45 @@ struct timesource_get_start_latency_reply : public reply_data
bigtime_t start_latency;
};
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;
};
struct controllable_get_parameter_web_request : public request_data
{
area_id area;