summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-02 16:58:25 -0300
committerLuiz Augusto von Dentz <luiz.dentz@indt.org.br>2008-07-28 10:32:11 -0300
commiteec75a25f96e441e07f82fbffb3c476d2c998091 (patch)
treebcc7f2b5754ab72bfd2fecfece3c29ab5e2269a2
parent13810f9185243073fab403b7881ed180fb3f09e9 (diff)
Further cleanups to device.c.
-rw-r--r--hcid/device.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/hcid/device.c b/hcid/device.c
index 00f77aa4..a2b6ab9d 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -915,7 +915,7 @@ static DBusMessage *set_alias(DBusConnection *conn, DBusMessage *msg,
struct adapter *adapter = device->adapter;
bdaddr_t bdaddr;
int ecode;
- char *str, filename[PATH_MAX + 1], path[MAX_PATH_LENGTH];
+ char *str, filename[PATH_MAX + 1];
str2ba(device->address, &bdaddr);
@@ -935,14 +935,6 @@ static DBusMessage *set_alias(DBusConnection *conn, DBusMessage *msg,
ERROR_INTERFACE ".Failed",
strerror(-ecode));
- snprintf(path, sizeof(path), "/hci%d", adapter->dev_id);
-
- g_dbus_emit_signal(conn, path,
- ADAPTER_INTERFACE, "RemoteAliasChanged",
- DBUS_TYPE_STRING, &device->address,
- DBUS_TYPE_STRING, &str,
- DBUS_TYPE_INVALID);
-
dbus_connection_emit_property_changed(conn, dbus_message_get_path(msg),
DEVICE_INTERFACE, "Alias",
DBUS_TYPE_STRING, &str);
@@ -958,14 +950,11 @@ static DBusMessage *set_trust(DBusConnection *conn, DBusMessage *msg,
struct device *device = data;
struct adapter *adapter = device->adapter;
bdaddr_t local;
- char path[MAX_PATH_LENGTH];
str2ba(adapter->address, &local);
write_trust(&local, device->address, GLOBAL_TRUST, value);
- snprintf(path, sizeof(path), "/hci%d", adapter->dev_id);
-
dbus_connection_emit_property_changed(conn, dbus_message_get_path(msg),
DEVICE_INTERFACE, "Trusted",
DBUS_TYPE_BOOLEAN, &value);