summaryrefslogtreecommitdiff
path: root/src/modules/bluetooth
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>2014-09-10 11:48:34 +0200
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2014-09-11 14:00:15 +0300
commitf7c7cd1825a0bf0ad643d4dfd4a38f589930e886 (patch)
tree8929709c83879308ea0c87f437de3ef886c13445 /src/modules/bluetooth
parentb1a09ebf7ea3ba9471d2376b2b42fc252897278d (diff)
downloadpulseaudio-f7c7cd1825a0bf0ad643d4dfd4a38f589930e886.tar.gz
bluetooth: Implement org.ofono.HandsfreeAudioAgent.Release()
Diffstat (limited to 'src/modules/bluetooth')
-rw-r--r--src/modules/bluetooth/backend-ofono.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/bluetooth/backend-ofono.c b/src/modules/bluetooth/backend-ofono.c
index 3f409417b..cab5319c7 100644
--- a/src/modules/bluetooth/backend-ofono.c
+++ b/src/modules/bluetooth/backend-ofono.c
@@ -491,7 +491,15 @@ static DBusMessage *hf_audio_agent_release(DBusConnection *c, DBusMessage *m, vo
return r;
}
- r = dbus_message_new_error(m, "org.ofono.Error.NotImplemented", "Operation is not implemented");
+ pa_log_debug("HF audio agent has been unregistered by oFono (%s)", backend->ofono_bus_id);
+
+ pa_hashmap_remove_all(backend->cards);
+
+ pa_xfree(backend->ofono_bus_id);
+ backend->ofono_bus_id = NULL;
+
+ pa_assert_se(r = dbus_message_new_method_return(m));
+
return r;
}