Skip to contentSkip to conversation

Add {deprecated} annotation to ListDevices()

PATCH In review Gustavo F. Padovan 2 participants 4 messages Feb 12, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Add {deprecated} annotation to ListDevices()

---
 doc/adapter-api.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
doc/adapter-api.txt +3 -1
index 213bc02..48cab40 100644
@@ -80,9 +80,11 @@ Methods		dict GetProperties()
 			Possible Errors: org.bluez.Error.DoesNotExist
 					 org.bluez.Error.InvalidArguments
 
-		array{object} ListDevices()
+		array{object} ListDevices() {deprecated}
 
 			Returns list of device object paths.
+			This method is deprecated, instead use the Devices
+			Property to get the list of devices object paths.
 
 			Possible errors: org.bluez.Error.InvalidArguments
 					 org.bluez.Error.Failed
Signature · 1 line
1.6.4.4
#1 lore raw

PATCH 2/2 Deprecate the ListAdapters() method on Manager

---
 doc/manager-api.txt |    6 ++++--
 src/manager.c       |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)
doc/manager-api.txt +4 -2
index 256a782..d2c1caf 100644
@@ -37,9 +37,11 @@ Methods		dict GetProperties()
 			Possible errors: org.bluez.Error.InvalidArguments
 					 org.bluez.Error.NoSuchAdapter
 
-		array{object} ListAdapters()
+		array{object} ListAdapters() {deprecated}
 
-			Returns list of adapter object paths under /org/bluez
+			Returns list of adapter object paths under /org/bluez.
+			This method is deprecated, instead use the Adapters
+			Property to get the list of adapter object paths.
 
 			Possible errors: org.bluez.Error.InvalidArguments
 					 org.bluez.Error.Failed
src/manager.c +2 -1
index 3331dcb..da7b91f 100644
@@ -229,7 +229,8 @@ static GDBusMethodTable manager_methods[] = {
 	{ "GetProperties",	"",	"a{sv}",get_properties	},
 	{ "DefaultAdapter",	"",	"o",	default_adapter	},
 	{ "FindAdapter",	"s",	"o",	find_adapter	},
-	{ "ListAdapters",	"",	"ao",	list_adapters	},
+	{ "ListAdapters",	"",	"ao",	list_adapters,
+						G_DBUS_METHOD_FLAG_DEPRECATED},
 	{ }
 };
 
Signature · 1 line
1.6.4.4
maintainer
#2 lore raw

Re: [PATCH 2/2] Deprecate the ListAdapters() method on Manager

Hi Gustavo,

Quoted 3 lines
 doc/manager-api.txt |    6 ++++--
 src/manager.c       |    3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

patch has been applied. Thanks.

Regards

Marcel