summaryrefslogtreecommitdiffstats
path: root/bluez-client.c
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-05-15 12:59:55 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-05-15 19:51:02 -0700
commit50092f916c339e4e2b3b133abd00560b8ace8283 (patch)
tree25ab52ec7c2726deaa6dc386e9df29ec960c2a19 /bluez-client.c
parenteee2eb78bd8c1f9d3daeef1ef496dbb6484b5124 (diff)
binding: bluetooth: add support for avrcp metadata reporting
Add binding support for reporting avrcp metadata, and status events. Bug-AGL: SPEC-596 Change-Id: I33a1045db5aa421a01e28c7bda254085b107e4f1 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'bluez-client.c')
-rw-r--r--bluez-client.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/bluez-client.c b/bluez-client.c
index 3b97fef..e70df91 100644
--- a/bluez-client.c
+++ b/bluez-client.c
@@ -594,6 +594,11 @@ static void on_object_removed (GDBusObjectManager *manager,
dbusObjecPath = g_dbus_object_get_object_path (object);
+ if ((37 != strlen(dbusObjecPath))
+ || (NULL == g_strrstr_len(dbusObjecPath, 19,ADAPTER_PATH"/dev"))) {
+ return;
+ }
+
if (NULL != bluez_RegisterCallback.device_removed)
{
bluez_RegisterCallback.device_removed(dbusObjecPath);
@@ -646,16 +651,12 @@ on_interface_proxy_properties_changed (GDBusObjectManagerClient *manager,
#endif
//ObjectPath is /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx
- if ((37 != strlen(pObjecPath))
- || (NULL == g_strrstr_len(pObjecPath, 19,
- ADAPTER_PATH"/dev"))) {
- return;
- }
LOGD("%s\n",pObjecPath);
if( (0 == g_strcmp0(pInterface, DEVICE_INTERFACE)) ||
- (0 == g_strcmp0(pInterface, MEDIA_CONTROL1_INTERFACE))) {
+ (0 == g_strcmp0(pInterface, MEDIA_CONTROL1_INTERFACE)) ||
+ (0 == g_strcmp0(pInterface, MEDIA_PLAYER1_INTERFACE))) {
if (bluez_RegisterCallback.device_properties_changed)
bluez_RegisterCallback.device_properties_changed(pObjecPath,