summaryrefslogtreecommitdiffstats
path: root/plugins/lib/bluealsa/hal-bluealsa-transports.h
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2019-01-23 11:27:03 +0100
committerThierry Bultel <thierry.bultel@iot.bzh>2019-01-29 13:46:17 +0100
commitfbad8c202c86e4cf6503a99161aabf87ab7a7109 (patch)
treeec1ed853ba1e54332dc2461ba256ac76d551a865 /plugins/lib/bluealsa/hal-bluealsa-transports.h
parent2b558bb1ec9f854769c556e84735e7dcd3a295e8 (diff)
bluealsa plugin: monitor the state of service via dbus
By monitoring the changes of names on dbus, and by asking dbus for the list of available names at startup, the bluealsa plugin can now be started at whatever time, and is also robust to bluealsa restarts. Moreover, since the bluealsa name has the HCI interface has a suffix (org.bluez-alsa.hci0, for instance), there is not need to hardcode the hci name. Even better, the plugin supports several instances of bluealsa (since the daemon needs one instace per hci device), and will add a watch for added transports for every instance it detects. Complete cleanup of the created streams in softmixer is done when one watched instance disappears. Finnaly, there is a new cmd line '-DWITHOUT_BLUEALSA' option to CMake, for developpers that want to use 4A on host, without the bluealsa library. Default build (SDK, bitbake) consider that the bluealsa shared library is always available. Notice that in the future, the bluealsa library might disappeared, to be replaced by a full dbus interface to bluealsa. BUG-AGL:SPEC-2126 Change-Id: I67fc6edf5147c71dc97f1fc1257d3dadbdde20fc Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
Diffstat (limited to 'plugins/lib/bluealsa/hal-bluealsa-transports.h')
-rw-r--r--plugins/lib/bluealsa/hal-bluealsa-transports.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/lib/bluealsa/hal-bluealsa-transports.h b/plugins/lib/bluealsa/hal-bluealsa-transports.h
index d5b277f..0c75f1d 100644
--- a/plugins/lib/bluealsa/hal-bluealsa-transports.h
+++ b/plugins/lib/bluealsa/hal-bluealsa-transports.h
@@ -26,8 +26,8 @@
#include "hal-bluealsa-watch.h"
typedef struct {
- const bluealsa_watch * watch; /* owner */
struct cds_list_head list;
+ const bluealsa_watch * watch; /* owner */
struct ba_msg_transport transport;
char * transactionUidS;
} bluealsa_transport_t;