summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-12 20:00:45 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-03-12 20:00:45 +0000
commit33228f0e33468aac9aa2d155b414d8192b23b0f3 (patch)
tree1b8fe089ecc482ff9c68cc227fc413dff23e7c0c /hcid/adapter.c
parentcf826d7c14f2587e96815dc714739be161e98d80 (diff)
Emit PropertyChanged when property changes in adapter.
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index e2e22548..8c7c53f5 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -730,6 +730,11 @@ static DBusHandlerResult set_discoverable_timeout(DBusConnection *conn,
DBUS_TYPE_UINT32, &timeout,
DBUS_TYPE_INVALID);
+ dbus_connection_emit_property_changed(conn, dbus_message_get_path(msg),
+ ADAPTER_INTERFACE,
+ "DiscoverableTimeout",
+ DBUS_TYPE_UINT32, &timeout);
+
return send_message_and_unref(conn, reply);
}
@@ -1143,6 +1148,10 @@ done:
if (!reply)
return DBUS_HANDLER_RESULT_NEED_MEMORY;
+ dbus_connection_emit_property_changed(conn, dbus_message_get_path(msg),
+ ADAPTER_INTERFACE, "Name",
+ DBUS_TYPE_STRING, &name);
+
return send_message_and_unref(conn, reply);
}