From 97b8908160621e315915ae676dbbc7cdc4d29336 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 18 Oct 2002 14:03:54 +0000 Subject: [PATCH] Added message constants for roster watching. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1576 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- docs/develop/servers/registrar/Protocols | 46 ++++++++++++++++++++++-- headers/private/app/RegistrarDefs.h | 2 ++ 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/docs/develop/servers/registrar/Protocols b/docs/develop/servers/registrar/Protocols index ab9e8b148e..3b0343820c 100644 --- a/docs/develop/servers/registrar/Protocols +++ b/docs/develop/servers/registrar/Protocols @@ -338,7 +338,7 @@ error reply fields: broadcast a message (BRoster::Broadcast()) target: roster -message: B_REG_ACTIVATE_APP +message: B_REG_BROADCAST "team": B_INT32_TYPE "message": B_MESSAGE_TYPE "reply_target": B_MESSENGER_TYPE @@ -347,7 +347,7 @@ on error: - B_NO_REPLY (fatal) - standard error message fields: -- "team": The requesting team. +- "team": The requesting team (team_id). - "message": The message to be broadcast. - "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 ---------------------- diff --git a/headers/private/app/RegistrarDefs.h b/headers/private/app/RegistrarDefs.h index bb4526bf88..839e9f5d97 100644 --- a/headers/private/app/RegistrarDefs.h +++ b/headers/private/app/RegistrarDefs.h @@ -57,6 +57,8 @@ enum { B_REG_GET_APP_LIST = 'rgal', B_REG_ACTIVATE_APP = 'rgac', B_REG_BROADCAST = 'rgbc', + B_REG_START_WATCHING = 'rgwa', + B_REG_STOP_WATCHING = 'rgsw', // MIME requests B_REG_MIME_SET_PARAM = 'rgsp', B_REG_MIME_DELETE_PARAM = 'rgdp',