diff options
author | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-01 14:54:17 -0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@indt.org.br> | 2008-07-28 10:31:18 -0300 |
commit | 34f8a76bd5bd24ae1a1594f4d1460df393675ec1 (patch) | |
tree | 0c65e1d8b2d34d978a1b470f661778aa0d110573 /hcid/device.c | |
parent | 1ea3f7de314eb0b699cac4b80f5085666c0e6d50 (diff) |
Remove BASE_PATH define.
Diffstat (limited to 'hcid/device.c')
-rw-r--r-- | hcid/device.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/hcid/device.c b/hcid/device.c index 66ab2dd7..7a519716 100644 --- a/hcid/device.c +++ b/hcid/device.c @@ -935,7 +935,7 @@ static DBusMessage *set_alias(DBusConnection *conn, DBusMessage *msg, ERROR_INTERFACE ".Failed", strerror(-ecode)); - snprintf(path, sizeof(path), "%s/hci%d", BASE_PATH, adapter->dev_id); + snprintf(path, sizeof(path), "/hci%d", adapter->dev_id); g_dbus_emit_signal(conn, path, ADAPTER_INTERFACE, "RemoteAliasChanged", @@ -964,13 +964,7 @@ static DBusMessage *set_trust(DBusConnection *conn, DBusMessage *msg, write_trust(&local, device->address, GLOBAL_TRUST, value); - snprintf(path, sizeof(path), "%s/hci%d", BASE_PATH, adapter->dev_id); - - g_dbus_emit_signal(conn, path, - ADAPTER_INTERFACE, - value ? "TrustAdded" : "TrustRemoved", - DBUS_TYPE_STRING, &device->address, - DBUS_TYPE_INVALID); + snprintf(path, sizeof(path), "/hci%d", adapter->dev_id); dbus_connection_emit_property_changed(conn, dbus_message_get_path(msg), DEVICE_INTERFACE, "Trusted", |