Commit f65dfcdd authored by pali's avatar pali
Browse files

fixup! WIP: bluetooth: Add support for hsphfpd service to handle HSP and HFP profiles

parent 43d6ef6e
...@@ -1165,9 +1165,10 @@ pa_bluetooth_backend *pa_bluetooth_hsphfpd_backend_new(pa_core *core, pa_bluetoo ...@@ -1165,9 +1165,10 @@ pa_bluetooth_backend *pa_bluetooth_hsphfpd_backend_new(pa_core *core, pa_bluetoo
if (pa_dbus_add_matches(pa_dbus_connection_get(backend->connection), &err, if (pa_dbus_add_matches(pa_dbus_connection_get(backend->connection), &err,
"type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='" HSPHFPD_SERVICE "'", "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='" HSPHFPD_SERVICE "'",
"type='signal',sender='" HSPHFPD_SERVICE "',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesAdded'", "type='signal',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesAdded'",
"type='signal',sender='" HSPHFPD_SERVICE "',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesRemoved'", "type='signal',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesRemoved'",
"type='signal',sender='" HSPHFPD_SERVICE "',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='" HSPHFPD_AUDIO_TRANSPORT_INTERFACE "'", "type='signal',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='" HSPHFPD_ENDPOINT_INTERFACE "'",
"type='signal',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='" HSPHFPD_AUDIO_TRANSPORT_INTERFACE "'",
NULL) < 0) { NULL) < 0) {
pa_log_error("Failed to add hsphfpd D-Bus matches: %s", err.message); pa_log_error("Failed to add hsphfpd D-Bus matches: %s", err.message);
dbus_connection_remove_filter(pa_dbus_connection_get(backend->connection), filter_cb, backend); dbus_connection_remove_filter(pa_dbus_connection_get(backend->connection), filter_cb, backend);
...@@ -1196,9 +1197,10 @@ void pa_bluetooth_hsphfpd_backend_free(pa_bluetooth_backend *backend) { ...@@ -1196,9 +1197,10 @@ void pa_bluetooth_hsphfpd_backend_free(pa_bluetooth_backend *backend) {
pa_dbus_remove_matches(pa_dbus_connection_get(backend->connection), pa_dbus_remove_matches(pa_dbus_connection_get(backend->connection),
"type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='" HSPHFPD_SERVICE "'", "type='signal',sender='org.freedesktop.DBus',interface='org.freedesktop.DBus',member='NameOwnerChanged',arg0='" HSPHFPD_SERVICE "'",
"type='signal',sender='" HSPHFPD_SERVICE "',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesAdded'", "type='signal',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesAdded'",
"type='signal',sender='" HSPHFPD_SERVICE "',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesRemoved'", "type='signal',interface='org.freedesktop.DBus.ObjectManager',member='InterfacesRemoved'",
"type='signal',sender='" HSPHFPD_SERVICE "',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='" HSPHFPD_AUDIO_TRANSPORT_INTERFACE "'", "type='signal',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='" HSPHFPD_ENDPOINT_INTERFACE "'",
"type='signal',interface='org.freedesktop.DBus.Properties',member='PropertiesChanged',arg0='" HSPHFPD_AUDIO_TRANSPORT_INTERFACE "'",
NULL); NULL);
dbus_connection_remove_filter(pa_dbus_connection_get(backend->connection), filter_cb, backend); dbus_connection_remove_filter(pa_dbus_connection_get(backend->connection), filter_cb, backend);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment