Added message constants for roster watching.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1576 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2002-10-18 14:03:54 +00:00
parent 2d08f6879a
commit 97b8908160
2 changed files with 46 additions and 2 deletions
+44 -2
View File
@@ -338,7 +338,7 @@ error reply fields:
broadcast a message (BRoster::Broadcast()) broadcast a message (BRoster::Broadcast())
target: roster target: roster
message: B_REG_ACTIVATE_APP message: B_REG_BROADCAST
"team": B_INT32_TYPE "team": B_INT32_TYPE
"message": B_MESSAGE_TYPE "message": B_MESSAGE_TYPE
"reply_target": B_MESSENGER_TYPE "reply_target": B_MESSENGER_TYPE
@@ -347,7 +347,7 @@ on error: - B_NO_REPLY (fatal)
- standard error - standard error
message fields: message fields:
- "team": The requesting team. - "team": The requesting team (team_id).
- "message": The message to be broadcast. - "message": The message to be broadcast.
- "reply_target": The reply target for the message. - "reply_target": The reply target for the message.
@@ -359,6 +359,48 @@ error reply fields:
----------------------------------------------------------------------- -----------------------------------------------------------------------
start roster watching (BRoster::StartWatching())
target: roster
message: B_REG_START_WATCHING
"target": B_MESSENGER_TYPE
"events": B_INT32_TYPE
reply: standard success
on error: - B_NO_REPLY (fatal)
- standard error
message fields:
- "target": The target the event messages shall be sent to.
- "events": Specifies the events the caller is interested in (uint32).
error reply fields:
- "error":
- B_BAD_VALUE: A request message field is missing or contains an
invalid value.
- ...
-----------------------------------------------------------------------
stop roster watching (BRoster::StopWatching())
target: roster
message: B_REG_STOP_WATCHING
"target": B_MESSENGER_TYPE
reply: standard success
on error: - B_NO_REPLY (fatal)
- standard error
message fields:
- "target": The target that shall not longer receive any event messages.
error reply fields:
- "error":
- B_BAD_VALUE: A request message field is missing or contains an
invalid value.
- ...
-----------------------------------------------------------------------
MIME Database Requests MIME Database Requests
---------------------- ----------------------
+2
View File
@@ -57,6 +57,8 @@ enum {
B_REG_GET_APP_LIST = 'rgal', B_REG_GET_APP_LIST = 'rgal',
B_REG_ACTIVATE_APP = 'rgac', B_REG_ACTIVATE_APP = 'rgac',
B_REG_BROADCAST = 'rgbc', B_REG_BROADCAST = 'rgbc',
B_REG_START_WATCHING = 'rgwa',
B_REG_STOP_WATCHING = 'rgsw',
// MIME requests // MIME requests
B_REG_MIME_SET_PARAM = 'rgsp', B_REG_MIME_SET_PARAM = 'rgsp',
B_REG_MIME_DELETE_PARAM = 'rgdp', B_REG_MIME_DELETE_PARAM = 'rgdp',