blob: aaab2d481b443e10c98410c7c85836456783fb9a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" ?>
<node xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.chromium.Mtpd">
<method name="EnumerateStorage">
<arg name="storageList" type="as" direction="out">
<tp:docstring>
List of storages. Storages are described as Bus:Location:StorageId.
E.g. usb:2,4:1234.
</tp:docstring>
</arg>
</method>
<method name="GetStorageInfo">
<arg name="storageName" type="s" direction="in">
<tp:docstring>
Storage name is in the same format as EnumerateStorage.
</tp:docstring>
</arg>
<arg name="storageInfo" type="ay" direction="out">
</arg>
</method>
<method name="OpenStorage">
<arg name="storageName" type="s" direction="in">
<tp:docstring>
Storage name is in the same format as EnumerateStorage.
</tp:docstring>
</arg>
<arg name="mode" type="s" direction="in">
<tp:docstring>
Mode to open the storage in.
Currently the only valid mode is "readonly".
</tp:docstring>
</arg>
<arg name="handle" type="s" direction="out">
<tp:docstring>
Handle to the storage. Empty on failure.
</tp:docstring>
</arg>
</method>
<method name="CloseStorage">
<arg name="handle" type="s" direction="in">
<tp:docstring>
Handle to the storage from OpenStorage.
</tp:docstring>
</arg>
</method>
<method name="ReadDirectoryByPath">
<arg name="handle" type="s" direction="in">
<tp:docstring>
Handle to the storage from OpenStorage.
</tp:docstring>
</arg>
<arg name="filePath" type="s" direction="in">
<tp:docstring>
Absolute path with root as the root of the storage.
</tp:docstring>
</arg>
<arg name="results" type="ay" direction="out">
</arg>
</method>
<method name="ReadDirectoryById">
<arg name="handle" type="s" direction="in">
<tp:docstring>
Handle to the storage from OpenStorage.
</tp:docstring>
</arg>
<arg name="fileId" type="u" direction="in">
</arg>
<arg name="results" type="ay" direction="out">
</arg>
</method>
<method name="ReadFileByPath">
<arg name="handle" type="s" direction="in">
<tp:docstring>
Handle to the storage from OpenStorage.
</tp:docstring>
</arg>
<arg name="filePath" type="s" direction="in">
<tp:docstring>
Absolute path with root as the root of the storage.
</tp:docstring>
</arg>
<arg name="data" type="ay" direction="out">
</arg>
</method>
<method name="ReadFileById">
<arg name="handle" type="s" direction="in">
<tp:docstring>
Handle to the storage from OpenStorage.
</tp:docstring>
</arg>
<arg name="fileId" type="u" direction="in">
</arg>
<arg name="data" type="ay" direction="out">
</arg>
</method>
<method name="GetFileInfoByPath">
<arg name="handle" type="s" direction="in">
<tp:docstring>
Handle to the storage from OpenStorage.
</tp:docstring>
</arg>
<arg name="filePath" type="s" direction="in">
<tp:docstring>
Absolute path with root as the root of the storage.
</tp:docstring>
</arg>
<arg name="info" type="ay" direction="out">
</arg>
</method>
<method name="GetFileInfoById">
<arg name="handle" type="s" direction="in">
<tp:docstring>
Handle to the storage from OpenStorage.
</tp:docstring>
</arg>
<arg name="fileId" type="u" direction="in">
</arg>
<arg name="info" type="ay" direction="out">
</arg>
</method>
<method name="IsAlive">
<tp:docstring>
Test method to verify that the MTP service is working.
</tp:docstring>
<arg name="result" type="b" direction="out">
<tp:docstring>
Boolean indicating whether the MTP service is alive.
</tp:docstring>
</arg>
</method>
<signal name="MTPStorageAttached">
<arg name="storageName" type="s" direction="out">
<tp:docstring>
Storage name is in the same format as EnumerateStorage.
</tp:docstring>
</arg>
</signal>
<signal name="MTPStorageDetached">
<arg name="storageName" type="s" direction="out">
<tp:docstring>
Storage name is in the same format as EnumerateStorage.
</tp:docstring>
</arg>
</signal>
</interface>
</node>