diff options
Diffstat (limited to 'src/dbus-hci.c')
-rw-r--r-- | src/dbus-hci.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/dbus-hci.c b/src/dbus-hci.c index 36aca477..9ee2e09b 100644 --- a/src/dbus-hci.c +++ b/src/dbus-hci.c @@ -1028,8 +1028,7 @@ void hcid_dbus_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class) dev_path = device_get_path(device); - dbus_connection_emit_property_changed(connection, dev_path, - DEVICE_INTERFACE, "Class", + emit_property_changed(connection, dev_path, DEVICE_INTERFACE, "Class", DBUS_TYPE_UINT32, &class); } @@ -1059,17 +1058,15 @@ void hcid_dbus_remote_name(bdaddr_t *local, bdaddr_t *peer, uint8_t status, dev_path = device_get_path(device); - dbus_connection_emit_property_changed(connection, - dev_path, DEVICE_INTERFACE, - "Name", DBUS_TYPE_STRING, &name); + emit_property_changed(connection, dev_path, + DEVICE_INTERFACE, "Name", + DBUS_TYPE_STRING, &name); if (read_device_alias(srcaddr, dstaddr, - alias, sizeof(alias)) < 1) { - - dbus_connection_emit_property_changed(connection, - dev_path, DEVICE_INTERFACE, - "Alias", DBUS_TYPE_STRING, &name); - } + alias, sizeof(alias)) < 1) + emit_property_changed(connection, dev_path, + DEVICE_INTERFACE, "Alias", + DBUS_TYPE_STRING, &name); } } |