From 2e3a1fb2b627dd5121cf9bd9ab74b6c28bbbec67 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 11 May 2011 14:48:21 +0200 Subject: [PATCH] DelegateChannels: return the list channels of (not) delegated channels (fdo #37109) --- spec/Channel_Dispatcher.xml | 75 ++++++++++++++++++++++++++++++++++++------- 1 files changed, 63 insertions(+), 12 deletions(-) diff --git a/spec/Channel_Dispatcher.xml b/spec/Channel_Dispatcher.xml index 2de5280..73e59fc 100644 --- a/spec/Channel_Dispatcher.xml +++ b/spec/Channel_Dispatcher.xml @@ -572,18 +572,26 @@ + This methods now returns + Delegated and Not_Delegated instead of nothing. + HandleChannels + is now called once per Channel in Channels. +

Called by a Handler to redispatch a bunch of channels it is currently handling.

-

If another - Handler +

For each Channel in Channels, if another + Handler can be found, - HandleChannels - will be called on it and this function will succeed. In that case, - the original Handler - does not longer handle those channels.

+ HandleChannels + will be called on it until a + Handler + accepts it.

+ +

This method returns once all the Channels have either + been accepted or rejected by Handlers.

If this method fails, the original Handler @@ -626,6 +634,25 @@ + + +

The list of channels which have been delegated; the caller is no + longer handling these channels.

+ +

The client should remove these channels from its + HandledChannels + property.

+
+ + + + +

The list of channels which have NOT been delegated; the caller is still + handling these channels.

+
+
+ @@ -640,16 +667,40 @@ The caller is not currently handling the channels. - - - - There is no other suitable Handler. - -
+ + + A mapping associating not delegated channel with an error. + + + + + The path of the channel + + + + + An error describing why the channel has not be delegated + + + + + + + + the name of a D-Bus error describing what went wrong. + + + + + a human-readable informative error message. + + + + -- 1.7.4.1