diff options
author | Alok Barsode <alok.barsode@azingo.com> | 2008-07-22 20:20:34 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-28 10:48:22 -0300 |
commit | 661a10565362c5ae0aad6a2ebf6513390cba868e (patch) | |
tree | aa4296ef19a88a35c67e778ff34ff9560b11aa28 /hcid/dbus-common.c | |
parent | d9ff801460ee610f98b97571311e4af13bb8e1a1 (diff) |
Adding adapter_get_dev_id.
Signed-off-by: Alok Barsode <alok.barsode@azingo.com>
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r-- | hcid/dbus-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c index e779549c..02edd683 100644 --- a/hcid/dbus-common.c +++ b/hcid/dbus-common.c @@ -183,6 +183,7 @@ void hcid_dbus_unregister(void) DBusConnection *conn = get_dbus_connection(); char **children; int i; + uint16_t dev_id; if (!conn || !dbus_connection_get_is_connected(conn)) return; @@ -204,7 +205,8 @@ void hcid_dbus_unregister(void) if (!adapter) continue; - manager_unregister_adapter(adapter->dev_id); + dev_id = adapter_get_dev_id(adapter); + manager_unregister_adapter(dev_id); } dbus_free_string_array(children); |