summaryrefslogtreecommitdiffstats
path: root/doc/adapter-api.txt
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-03-07 14:28:43 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-03-07 14:28:43 +0000
commit19e7dbecf4b38bf64458a34ea005a8aca0bc8974 (patch)
tree640478bcaf7f21c1861d59b20095dcfaa7fc9829 /doc/adapter-api.txt
parentb866782105bd76c0f7f2c2bc9e2f4a25d3b0d0fe (diff)
Move documentation into doc directory
Diffstat (limited to 'doc/adapter-api.txt')
-rw-r--r--doc/adapter-api.txt101
1 files changed, 101 insertions, 0 deletions
diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
new file mode 100644
index 00000000..1f9cdd88
--- /dev/null
+++ b/doc/adapter-api.txt
@@ -0,0 +1,101 @@
+BlueZ D-Bus Adapter API description
+***********************************
+
+Copyright (C) 2006-2008 Marcel Holtmann <marcel@holtmann.org>
+Copyright (C) 2005-2006 Johan Hedberg <johan.hedberg@nokia.com>
+Copyright (C) 2005-2006 Claudio Takahasi <claudio.takahasi@indt.org.br>
+Copyright (C) 2005-2006 Eduardo Rocha <eduardo.rocha@indt.org.br>
+Copyright (C) 2008-2008 Luiz von Dentz <luiz.dentz@indt.org.br>
+
+Adapter hierarchy
+=================
+
+Service org.bluez
+Interface org.bluez.Adapter
+Object path /org/bluez/{hci0,hci1,...}
+
+Methods dict GetProperties()
+
+ TBD
+
+ void SetProperty(string name, variant value)
+
+ TBD
+
+ array{object} ListDevices()
+
+ TBD
+
+ void DiscoverDevices()
+
+ This method starts the device discovery procedure. This
+ includes an inquiry procedure and remote device name
+ resolving.
+
+ On start up this process will generate a DiscoveryStarted
+ signal and then return RemoteDeviceFound and also
+ RemoteNameUpdated signals. If the procedure has been
+ finished an DiscoveryCompleted signal will be sent.
+
+ Possible errors: org.bluez.Error.NotReady
+ org.bluez.Error.Failed
+ org.bluez.Error.InProgress
+ org.bluez.Error.NoSuchAdapter
+
+ void CancelDiscovery()
+
+ This method will cancel any previous DiscoverDevices
+ or DiscoverDevicesWithoutNameResolving actions.
+
+ Possible errors: org.bluez.Error.NotReady
+ org.bluez.Error.Failed
+ org.bluez.Error.NotAuthorized
+ org.bluez.Error.NoSuchAdapter
+
+ object CreateDevice(string address)
+
+ TBD
+
+ object CreateDeviceWithAgent(string address, object path)
+
+ TBD
+
+ void RemoveDevice(object path)
+
+Signals DeviceCreated(object path)
+
+ TBD
+
+ DeviceRemoved(object path)
+
+ TBD
+
+ PropertyChanged(string name, variant value)
+
+ TBD
+
+ DiscoveryStarted()
+
+ TBD
+
+ DiscoveryCompleted()
+
+ TBD
+
+ DeviceFound(string address, dict values)
+
+ TBD
+
+ DeviceDisappeared(string address)
+
+ TBD
+
+Properties string Name [readonly]
+
+ string Address [readonly]
+
+ boolean PeriodicInquiry [readwrite]
+
+ string Mode [readwrite]
+
+ uint32 DiscoverableTimeout [readwrite]