Skip to contentSkip to conversation

doc/device-api: Update possible errors for ConnectProfile

PATCH Applied Jakub Sitnicki 2 participants 3 messages Jan 27, 2015 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 doc/device-api: Update possible errors for ConnectProfile

Make API documentation reflect the current implementation.

---
 doc/device-api.txt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
doc/device-api.txt +5 -3
index 86d8af8..4f5e1d9 100644
@@ -46,9 +46,11 @@ Methods		void Connect()
 			device. The UUID provided is the remote service
 			UUID for the profile.
 
-			Possible errors: org.bluez.Error.DoesNotExist
-					 org.bluez.Error.AlreadyConnected
-					 org.bluez.Error.ConnectFailed
+			Possible errors: org.bluez.Error.Failed
+					 org.bluez.Error.InProgress
+					 org.bluez.Error.InvalidArguments
+					 org.bluez.Error.NotAvailable
+					 org.bluez.Error.NotReady
 
 		void DisconnectProfile(string uuid)
 
Signature · 1 line
1.9.3
#1 lore raw

PATCH 2/2 doc/device-api: Update possible errors for DisconnectProfile

Make API documentation reflect the current implementation.

---
 doc/device-api.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
doc/device-api.txt +3 -3
index 4f5e1d9..eec0024 100644
@@ -62,9 +62,9 @@ Methods		void Connect()
 			as long as the profile is registered this will always
 			succeed.
 
-			Possible errors: org.bluez.Error.DoesNotExist
-					 org.bluez.Error.Failed
-					 org.bluez.Error.NotConnected
+			Possible errors: org.bluez.Error.Failed
+					 org.bluez.Error.InProgress
+					 org.bluez.Error.InvalidArguments
 					 org.bluez.Error.NotSupported
 
 		void Pair()
Signature · 1 line
1.9.3
maintainer Applied
#2 lore raw
In reply to Jakub Sitnicki

Hi Jakub,

Quoted 25 lines · Jakub Sitnicki

Make API documentation reflect the current implementation.

---
 doc/device-api.txt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
doc/device-api.txt +5 -4
index 86d8af8..4f5e1d9 100644
@@ -46,9 +46,11 @@ Methods              void Connect()
                        device. The UUID provided is the remote service
                        UUID for the profile.
 
-                       Possible errors: org.bluez.Error.DoesNotExist
-                                        org.bluez.Error.AlreadyConnected
-                                        org.bluez.Error.ConnectFailed
+                       Possible errors: org.bluez.Error.Failed
+                                        org.bluez.Error.InProgress
+                                        org.bluez.Error.InvalidArguments
+                                        org.bluez.Error.NotAvailable
+                                        org.bluez.Error.NotReady
 
                void DisconnectProfile(string uuid)
 
--
Quoted 1 line

1.9.3

Applied, thanks.

Signature · 1 line
Luiz Augusto von Dentz