Thread (2 messages) flat view 2 messages, 1 author, 2011-03-28
STALE5613d

[PATCH 1/2] Update Adapter API documentation

From: Dmitriy Paliy <hidden>
Date: 2011-03-28 13:01:38
Subsystem: the rest · Maintainer: Linus Torvalds

RequestSession and ReleaseSession description is updated in adapter
API.
---
 doc/adapter-api.txt |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
index 5272d74..ad63dea 100644
--- a/doc/adapter-api.txt
+++ b/doc/adapter-api.txt
@@ -31,15 +31,23 @@ Methods		dict GetProperties()
 
 		void RequestSession()
 
-			This method will request a client session that
-			provides operational Bluetooth. A possible mode
-			change must be confirmed by the user via the agent.
+			This method requests a client session that provides
+			operational Bluetooth. A possible mode change must be
+			confirmed by the user via the agent.
+
+			Clients may request multiple sessions. All sessions
+			are released when adapter's mode is changed to off
+			state.
 
 			Possible Errors: org.bluez.Error.Rejected
 
 		void ReleaseSession()
 
-			Release a previous requested session.
+			Release a previously requested session and set adapter
+			to the mode on the moment of session request.
+
+			SetProperty can be used to set adapter's mode after
+			session release.
 
 			Possible Errors: org.bluez.Error.DoesNotExist
 
-- 
1.7.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help