Deprecate the ListAdapters() method on Manager

This commit is contained in:
Gustavo F. Padovan 2010-02-12 16:16:32 -02:00 committed by Marcel Holtmann
parent ff38bd9092
commit 6744ec5967
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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},
{ }
};