summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Ferrandis <ludovic.ferrandis@intel.com>2013-08-27 18:24:55 +0200
committerMark Ryan <mark.d.ryan@intel.com>2013-09-04 14:02:14 +0200
commit8c460ff2e476eeb2b7e35471e97308652a0197f2 (patch)
tree4ee52cf87cef4a8acde8fe2e767e482afae5c9c9 /doc
parent96f4729081606d859a5dff1aaab75511c02829b8 (diff)
downloaddleyna-server-8c460ff2e476eeb2b7e35471e97308652a0197f2.tar.gz
[API] Add new BrowseObjects API
Add new BrowseObjects API in MediaDevice interface Fix issue #114: <https://github.com/01org/dleyna-server/issues/114> Signed-off-by: Ludovic Ferrandis <ludovic.ferrandis@intel.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/server/dbus/API.txt28
1 files changed, 27 insertions, 1 deletions
diff --git a/doc/server/dbus/API.txt b/doc/server/dbus/API.txt
index 6dc2ba8..9664ed9 100644
--- a/doc/server/dbus/API.txt
+++ b/doc/server/dbus/API.txt
@@ -287,7 +287,7 @@ is emitted when this property changes.
Methods:
---------
-The com.intel.dLeynaServer.MediaDevice interface currently exposes seven methods:
+The com.intel.dLeynaServer.MediaDevice interface currently exposes 8 methods:
UploadToAnyContainer(s DisplayName, s FilePath) -> (u UploadId, o ObjectPath)
@@ -359,6 +359,32 @@ the RequestedMimeType and Resolution parameters.
Both RequestedMimeType and Resolution parameters are currently
reserved for future use and should be set as an empty string.
+BrowseObjects(as ObjectPath, as Filter) -> aa{sv}
+This method returns properties of all media objects specified by the first
+parameter. The list of properties to return is specified by the second
+parameter.
+The first argument is an array of object paths.
+The second argument is an array of property name. This is the list of
+properties that would be returned for each object.
+The format and the behaviour of this array is identical to the
+filter argument passed to the Search and List functions.
+The result is an array of property name+value dictionaries, one for each object
+specified in the first argument.
+In case of even a single 'Invalid path' in ObjectPath parameter, the function
+will failed and return an error.
+In case of 'Invalid ID', the function will succeed, and an 'Error' property
+will be set for this object.
+We guarantee that the number of elements of the result array is the same and in
+the same order as the ObjectPath array.
+
+The purposes of this method are:
+
+1. It allows applications to easily retrieve information about unrelated
+ objects in one call.
+2. It should be used in preference to GetAll, if an application wishes to
+ retrieve a subset of an object's properties. Browse is likely to be more
+ efficient than GetAll in such cases.
+
Signals:
---------