Add {deprecated} annotation to ListDevices()
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
@@ -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
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
@@ -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
@@ -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
Marcel Holtmann
maintainerRe: [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
Marcel Holtmann
maintainerHi Gustavo,
Quoted 3 lines
--- doc/adapter-api.txt | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
patch has been applied. Thanks.
Regards
Marcel