* [PATCH 1/2] Add {deprecated} annotation to ListDevices()
@ 2010-02-12 18:16 Gustavo F. Padovan
2010-02-12 18:16 ` [PATCH 2/2] Deprecate the ListAdapters() method on Manager Gustavo F. Padovan
2010-02-12 19:46 ` [PATCH 1/2] Add {deprecated} annotation to ListDevices() Marcel Holtmann
0 siblings, 2 replies; 4+ messages in thread
From: Gustavo F. Padovan @ 2010-02-12 18:16 UTC (permalink / raw)
To: linux-bluetooth
---
doc/adapter-api.txt | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/doc/adapter-api.txt b/doc/adapter-api.txt
index 213bc02..48cab40 100644
--- a/doc/adapter-api.txt
+++ b/doc/adapter-api.txt
@@ -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
--
1.6.4.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] Deprecate the ListAdapters() method on Manager
2010-02-12 18:16 [PATCH 1/2] Add {deprecated} annotation to ListDevices() Gustavo F. Padovan
@ 2010-02-12 18:16 ` Gustavo F. Padovan
2010-02-12 19:47 ` Marcel Holtmann
2010-02-12 19:46 ` [PATCH 1/2] Add {deprecated} annotation to ListDevices() Marcel Holtmann
1 sibling, 1 reply; 4+ messages in thread
From: Gustavo F. Padovan @ 2010-02-12 18:16 UTC (permalink / raw)
To: linux-bluetooth
---
doc/manager-api.txt | 6 ++++--
src/manager.c | 3 ++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/doc/manager-api.txt b/doc/manager-api.txt
index 256a782..d2c1caf 100644
--- a/doc/manager-api.txt
+++ b/doc/manager-api.txt
@@ -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
diff --git a/src/manager.c b/src/manager.c
index 3331dcb..da7b91f 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -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},
{ }
};
--
1.6.4.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] Add {deprecated} annotation to ListDevices()
2010-02-12 18:16 [PATCH 1/2] Add {deprecated} annotation to ListDevices() Gustavo F. Padovan
2010-02-12 18:16 ` [PATCH 2/2] Deprecate the ListAdapters() method on Manager Gustavo F. Padovan
@ 2010-02-12 19:46 ` Marcel Holtmann
1 sibling, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2010-02-12 19:46 UTC (permalink / raw)
To: Gustavo F. Padovan; +Cc: linux-bluetooth
Hi Gustavo,
> ---
> doc/adapter-api.txt | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
patch has been applied. Thanks.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] Deprecate the ListAdapters() method on Manager
2010-02-12 18:16 ` [PATCH 2/2] Deprecate the ListAdapters() method on Manager Gustavo F. Padovan
@ 2010-02-12 19:47 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2010-02-12 19:47 UTC (permalink / raw)
To: Gustavo F. Padovan; +Cc: linux-bluetooth
Hi Gustavo,
> doc/manager-api.txt | 6 ++++--
> src/manager.c | 3 ++-
> 2 files changed, 6 insertions(+), 3 deletions(-)
patch has been applied. Thanks.
Regards
Marcel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-12 19:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12 18:16 [PATCH 1/2] Add {deprecated} annotation to ListDevices() Gustavo F. Padovan
2010-02-12 18:16 ` [PATCH 2/2] Deprecate the ListAdapters() method on Manager Gustavo F. Padovan
2010-02-12 19:47 ` Marcel Holtmann
2010-02-12 19:46 ` [PATCH 1/2] Add {deprecated} annotation to ListDevices() Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).