summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author <robert.mcqueen@collabora.co.uk>2006-09-11 08:24:11 +0000
committer <robert.mcqueen@collabora.co.uk>2006-09-11 08:24:11 +0000
commit767c4641a3d8115bc37cd39eb73c47c944ab4be3 (patch)
tree4163ac583ed45899f6610343a92842c3003fe7bd
parent8b3a2d0be3aa61da0b21a658c2ce5268008deaad (diff)
Channel.Type.StreamedMedia: make return value to RequestStreams identical to ListStreamstelepathy-spec-0.13.5
-rw-r--r--telepathy/server/channel.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/telepathy/server/channel.py b/telepathy/server/channel.py
index 17d2f56b..a197439f 100644
--- a/telepathy/server/channel.py
+++ b/telepathy/server/channel.py
@@ -339,7 +339,7 @@ class ChannelTypeStreamedMedia(Channel):
pass
@dbus.service.method(CHANNEL_TYPE_STREAMED_MEDIA, in_signature='uau',
- out_signature='au')
+ out_signature='a(uuuuuu)')
def RequestStreams(self, contact_handle, types):
"""
Request that streams be established to exchange the given types of
@@ -357,8 +357,15 @@ class ChannelTypeStreamedMedia(Channel):
types - an array of stream types (as defined in ListStreams)
Returns:
- an array of newly created stream identifiers (as defined in ListStreams)
- in the same order as the given stream types
+ an array of structs (in the same order as the given stream types)
+ containing:
+ the stream identifier
+ the contact handle who the stream is with (or 0 if the stream
+ represents more than a single member)
+ the type of the stream
+ the current stream state
+ the current direction of the stream
+ the current pending send flags
Possible Errors:
InvalidHandle, InvalidArgument (invalid stream type), NotAvailable (if