diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-05-15 12:59:55 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2017-05-15 19:51:02 -0700 |
commit | e8dd76c1c44567b917a7ff081d6ed80b8ef9f722 (patch) | |
tree | 9c5c4dba53f4943c7fb9c0686dc51d9fdd6476c4 /binding-bluetooth/bluez-client.c | |
parent | 062bc304e68f54ed13d44c39ec055e08cfd4e883 (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 'binding-bluetooth/bluez-client.c')
-rw-r--r-- | binding-bluetooth/bluez-client.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/binding-bluetooth/bluez-client.c b/binding-bluetooth/bluez-client.c index 3b97fef..e70df91 100644 --- a/binding-bluetooth/bluez-client.c +++ b/binding-bluetooth/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, |