From c0736ea762bfea95e98c8b9f118b4e5464f2159c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 16 Oct 2008 22:03:25 +0300 Subject: Rename dbus_connection_emit_property_changed to emit_property_changed --- src/dbus-hci.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/dbus-hci.c') 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); } } -- cgit