diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-06-09 21:13:58 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-06-09 21:13:58 +0000 |
commit | 1f7fe4eccf979527380b4ae9a1c6d7aa0bb8674e (patch) | |
tree | c262ce9ecccde1db244f29799ff7909ee45ad435 /hcid/dbus-hci.c | |
parent | f59e2e8ec01d6e725922d2cafbf17fa81cd4c669 (diff) |
Remove use of g_dbus_unregister_all_interfaces.
Diffstat (limited to 'hcid/dbus-hci.c')
-rw-r--r-- | hcid/dbus-hci.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c index d6fc0e95..20854087 100644 --- a/hcid/dbus-hci.c +++ b/hcid/dbus-hci.c @@ -494,14 +494,22 @@ int unregister_adapter_path(const char *path) g_free(adapter); unreg: - if (!g_dbus_unregister_all_interfaces(connection, path)) { - error("D-Bus failed to unregister %s object", path); + if (!adapter_cleanup(connection, path)) { + error("Failed to unregister adapter interface on %s object", + path); + return -1; + } + + if (!security_cleanup(connection, path)) { + error("Failed to unregister security interface on %s object", + path); return -1; } if (hcid_dbus_use_experimental()) { const char *ptr = path + ADAPTER_PATH_INDEX; - g_dbus_unregister_all_interfaces(connection, ptr); + + adapter_cleanup(connection, ptr); } return 0; |